From 8ca2028f3e82354ddf5c8cc4401767c899f72513 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Fri, 9 Dec 2011 12:13:46 +0000 Subject: [PATCH] javascript checker: make jshint 0.5.3 work --- syntax_checkers/javascript.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/syntax_checkers/javascript.vim b/syntax_checkers/javascript.vim index f037a7d8..299f25bb 100644 --- a/syntax_checkers/javascript.vim +++ b/syntax_checkers/javascript.vim @@ -115,7 +115,11 @@ elseif s:checker == 'jshint' else let makeprg = 'jshint ' . shellescape(expand("%")) endif - let errorformat = '%f: line %l\, col %c\, %m,%-G%.%#' - return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) + let errorformat = '%ELine %l:%c,%Z\\s%#Reason: %m,%C%.%#,%f: line %l\, col %c\, %m,%-G%.%#' + let errors = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) + for i in errors + let i['bufnr'] = bufnr('') + endfor + return errors endfunction endif