]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(abnf): include ABNF filetype plugin
authorA4-Tacks <wdsjxhno1001@163.com>
Fri, 2 May 2025 13:40:33 +0000 (15:40 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 2 May 2025 13:40:33 +0000 (15:40 +0200)
closes: #17239

Signed-off-by: A4-Tacks <wdsjxhno1001@163.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
.github/MAINTAINERS
runtime/ftplugin/abnf.vim [new file with mode: 0644]

index 13c45daf82d6dc6bfeaf2dd333e92fc158c437e2..19a65c0c4e163d16d8fbd7805859db60a88c9a3e 100644 (file)
@@ -124,6 +124,7 @@ runtime/doc/vimtutor-ru.UTF-8.1             @RestorerZ
 runtime/doc/xxd-ru.1                   @RestorerZ
 runtime/doc/xxd-ru.UTF-8.1             @RestorerZ
 runtime/ftplugin/abaqus.vim            @costerwi
+runtime/ftplugin/abnf.vim              @A4-Tacks
 runtime/ftplugin/antlr4.vim            @jiangyinzuo
 runtime/ftplugin/apache.vim            @dubgeiser
 runtime/ftplugin/arduino.vim           @k-takata
diff --git a/runtime/ftplugin/abnf.vim b/runtime/ftplugin/abnf.vim
new file mode 100644 (file)
index 0000000..4741d5f
--- /dev/null
@@ -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