Commit: runtime(dts): include ftplugin support (#14522)

2 views
Skip to first unread message

Christian Brabandt

unread,
Apr 12, 2024, 12:45:13 PM4/12/24
to vim...@googlegroups.com
runtime(dts): include ftplugin support (#14522)

Commit: https://github.com/vim/vim/commit/0549c503ba20345097a14122f0a18dde69d470c5
Author: wzy <32936898...@users.noreply.github.com>
Date: Sat Apr 13 00:36:57 2024 +0800

runtime(dts): include ftplugin support (https://github.com/vim/vim/issues/14522)

Signed-off-by: Wu, Zhenyu <wuzh...@ustc.edu>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/ftplugin/dts.vim b/runtime/ftplugin/dts.vim
new file mode 100644
index 000000000..42e38338b
--- /dev/null
+++ b/runtime/ftplugin/dts.vim
@@ -0,0 +1,16 @@
+" Vim filetype plugin file
+" Language: dts/dtsi (device tree files)
+" Maintainer: Wu, Zhenyu <wuzh...@ustc.edu>
+" Latest Revision: 2024 Apr 12
+
+if exists('b:did_ftplugin')
+ finish
+endif
+let b:did_ftplugin = 1
+
+let b:undo_ftplugin = 'setl inc< cms< com<'
+
+setlocal include=^\%(#include\\|/include/\)
+" same as C
+setlocal commentstring&
+setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,://
Reply all
Reply to author
Forward
0 new messages