Nimbin[12]?Mirrors & Forks / syntastic / commits / 96d4989c

syntastic git · master

syntastic vim plugin (fork)

vim fork · first commit 2009-07-10 · last commit 2022-07-10 (4 years ago) · synced 3 days ago · upstream: github.com/vim-syntastic/syntastic

Vim Script 99%
git clone https://git.christianimmanuel.de/mirrors-forks/syntastic.gitwget https://git.christianimmanuel.de/mirrors-forks/syntastic/archive/syntastic.tar.gz

Fix puppet 5 parser

JAS01 · 2018-02-19 16:35 · 96d4989ccd647a879dff85cb3ba61a436e80034e

The new (not so new now) version of pupper (5) change a little the
parser output. Now it's something like

  Error: Could not parse for environment production: Syntax error at 'group' (file: /manifests/homedir.pp, line: 16, column: 5)

this bad fix allow syntastic to still working with puppet 5.
 syntax_checkers/puppet/puppet.vim | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/syntax_checkers/puppet/puppet.vim b/syntax_checkers/puppet/puppet.vim
index dd8211b3..1d3f62a5 100644
--- a/syntax_checkers/puppet/puppet.vim
+++ b/syntax_checkers/puppet/puppet.vim
@@ -30,7 +30,8 @@ function! SyntaxCheckers_puppet_puppet_GetLocList() dict
         \ '%-Gerr: Try ''puppet help parser validate'' for usage,' .
         \ '%-GError: Try ''puppet help parser validate'' for usage,' .
         \ '%A%t%*[a-zA-Z]: %m at %f:%l:%c,' .
-        \ '%A%t%*[a-zA-Z]: %m at %f:%l'
+        \ '%A%t%*[a-zA-Z]: %m at %f:%l,'.
+        \ '%AError: Could not parse for environment production: %m (file: %f\, line: %l\, column: %c)'
 
     return SyntasticMake({
         \ 'makeprg': makeprg,