commit 48c09ed4d9edd92a7c665a62aed04e8597088e60
parent 35247b00a44e838ed7d657a9b94964dc0664d28d
Author: Christian Clason <c.clason@uni-graz.at>
Date: Fri, 27 Dec 2024 16:26:03 +0100
vim-patch:6c57c30: runtime(compiler): include a basic bash syntax checker compiler
See @saccarosium 's suggestion at
https://github.com/vim/vim/pull/16311#issuecomment-2563447885
closes: vim/vim#16314
https://github.com/vim/vim/commit/6c57c30ad43f5e0d040f7d432ceb5d61fc6ab651
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
Diffstat:
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/runtime/compiler/bash.vim b/runtime/compiler/bash.vim
@@ -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