commit 8d6f016345ef8376604c4ab5bddcdb8fd595250c
parent 53b41ec7c2c0ebc572b3a3795fda2167270fa480
Author: Christian Clason <c.clason@uni-graz.at>
Date: Fri, 2 May 2025 16:16:33 +0200
vim-patch:c3f48e3: runtime(abnf): include ABNF filetype plugin
closes: vim/vim#17239
https://github.com/vim/vim/commit/c3f48e3a76c61884d7801171ced327b76965bf29
Co-authored-by: A4-Tacks <wdsjxhno1001@163.com>
Diffstat:
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/runtime/ftplugin/abnf.vim b/runtime/ftplugin/abnf.vim
@@ -0,0 +1,17 @@
+" Language: abnf
+" Maintainer: A4-Tacks <wdsjxhno1001@163.com>
+" Last Change: 2025-05-02
+" Upstream: https://github.com/A4-Tacks/abnf.vim
+
+if exists('b:did_ftplugin')
+ finish
+endif
+let b:did_ftplugin = 1
+
+let b:undo_ftplugin = 'setlocal iskeyword< comments< commentstring<'
+
+setlocal iskeyword=@,48-57,_,-,192-255
+setlocal comments=:;;,:;
+setlocal commentstring=;%s
+
+" vim:ts=8