Skip to content

Commit 0549c50

Browse files
authored
runtime(dts): include ftplugin support (#14522)
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 159dc0f commit 0549c50

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

runtime/ftplugin/dts.vim

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
" Vim filetype plugin file
2+
" Language: dts/dtsi (device tree files)
3+
" Maintainer: Wu, Zhenyu <wuzhenyu@ustc.edu>
4+
" Latest Revision: 2024 Apr 12
5+
6+
if exists('b:did_ftplugin')
7+
finish
8+
endif
9+
let b:did_ftplugin = 1
10+
11+
let b:undo_ftplugin = 'setl inc< cms< com<'
12+
13+
setlocal include=^\\%(#include\\\|/include/\\)
14+
" same as C
15+
setlocal commentstring&
16+
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://

0 commit comments

Comments
 (0)