From 48c09ed4d9edd92a7c665a62aed04e8597088e60 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 27 Dec 2024 16:26:03 +0100 Subject: [PATCH] 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 --- runtime/compiler/bash.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 runtime/compiler/bash.vim diff --git a/runtime/compiler/bash.vim b/runtime/compiler/bash.vim new file mode 100644 index 0000000000..cbd76ae410 --- /dev/null +++ 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