]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(compiler): include a basic bash syntax checker compiler
authorKonfekt <Konfekt@users.noreply.github.com>
Fri, 27 Dec 2024 15:22:44 +0000 (16:22 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 27 Dec 2024 15:22:44 +0000 (16:22 +0100)
See @saccarosium 's suggestion at
https://github.com/vim/vim/pull/16311#issuecomment-2563447885

closes: #16314

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/compiler/bash.vim [new file with mode: 0644]

diff --git a/runtime/compiler/bash.vim b/runtime/compiler/bash.vim
new file mode 100644 (file)
index 0000000..cbd76ae
--- /dev/null
@@ -0,0 +1,12 @@
+" Vim compiler file
+" Compiler:     Bash Syntax Checker
+" Maintainer:   @konfekt
+" Last Change:  2024 Dec 27
+
+if exists("current_compiler")
+   finish
+endif
+let current_compiler = "bash"
+
+CompilerSet makeprg=bash\ -n
+CompilerSet errorformat=%f:\ line\ %l:\ %m