aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-04-13 17:28:48 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-04-13 17:28:55 +0800
commitab1203b2eb567941b8fb3a2baa6ef383ae96d9da (patch)
tree16bfe53cfb759f96d2b5ad9aeb304965df78cc9c
parent3b639222ff784ec21335280fd77c911050e206f8 (diff)
downloadrneovim-ab1203b2eb567941b8fb3a2baa6ef383ae96d9da.tar.gz
rneovim-ab1203b2eb567941b8fb3a2baa6ef383ae96d9da.tar.bz2
rneovim-ab1203b2eb567941b8fb3a2baa6ef383ae96d9da.zip
vim-patch:0549c503ba20
runtime(dts): include ftplugin support (vim/vim#14522) https://github.com/vim/vim/commit/0549c503ba20345097a14122f0a18dde69d470c5 Co-authored-by: wzy <32936898+Freed-Wu@users.noreply.github.com>
-rw-r--r--runtime/ftplugin/dts.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/runtime/ftplugin/dts.vim b/runtime/ftplugin/dts.vim
new file mode 100644
index 0000000000..42e38338b7
--- /dev/null
+++ b/runtime/ftplugin/dts.vim
@@ -0,0 +1,16 @@
+" Vim filetype plugin file
+" Language: dts/dtsi (device tree files)
+" Maintainer: Wu, Zhenyu <wuzhenyu@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:*/,:///,://