From cc63193ce82c1e7b9ee2ad7d0ddd14e8394211ef Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 1 Mar 2021 13:44:50 +0100 Subject: Update --- compiler/puppet-lint.vim | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 compiler/puppet-lint.vim (limited to 'compiler/puppet-lint.vim') diff --git a/compiler/puppet-lint.vim b/compiler/puppet-lint.vim new file mode 100644 index 00000000..c65eeb19 --- /dev/null +++ b/compiler/puppet-lint.vim @@ -0,0 +1,27 @@ +if polyglot#init#is_disabled(expand(':p'), 'puppet', 'compiler/puppet-lint.vim') + finish +endif + +" Vim compiler file +" Compiler: puppet-lint +" Maintainer: Doug Kearns + +if exists("current_compiler") + finish +endif +let current_compiler = "puppet-lint" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal +endif + +let s:cpo_save = &cpo +set cpo&vim + +CompilerSet makeprg=puppet-lint\ --with-filename +CompilerSet errorformat=%f\ -\ %tRROR:\ %m\ on\ line\ %l, + \%f\ -\ %tARNING:\ %m\ on\ line\ %l, + \%-G%.%# + +let &cpo = s:cpo_save +unlet s:cpo_save -- cgit v1.2.3