diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2021-03-01 13:44:50 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2021-03-01 13:44:50 +0100 |
commit | cc63193ce82c1e7b9ee2ad7d0ddd14e8394211ef (patch) | |
tree | 260360b1a32ca19635f8c8884b81fcec9ed51168 /compiler/puppet-lint.vim | |
parent | 4c10562d2cc9b084518284c49a158558da5180a7 (diff) | |
download | vim-polyglot-cc63193ce82c1e7b9ee2ad7d0ddd14e8394211ef.tar.gz vim-polyglot-cc63193ce82c1e7b9ee2ad7d0ddd14e8394211ef.zip |
Update
Diffstat (limited to 'compiler/puppet-lint.vim')
-rw-r--r-- | compiler/puppet-lint.vim | 27 |
1 files changed, 27 insertions, 0 deletions
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('<sfile>:p'), 'puppet', 'compiler/puppet-lint.vim') + finish +endif + +" Vim compiler file +" Compiler: puppet-lint +" Maintainer: Doug Kearns <dougkearns@gmail.com> + +if exists("current_compiler") + finish +endif +let current_compiler = "puppet-lint" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +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 |