From ea7d9779f07a82f3cc0e344176054e33ecfc37b0 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sun, 4 Dec 2011 02:14:24 +0000 Subject: [PATCH] update the gjslint javascript checker This was missing errors like this: /tmp/foo.js:1:(-002) Error parsing file at token ")". Unable to check the rest of file. The reason is because of the minus sign in front of the 002. It is using %m to match that, which appears to only match positive numbers - so just ignore the minus sign. --- syntax_checkers/javascript.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/javascript.vim b/syntax_checkers/javascript.vim index 1f47b99d..6ed9134d 100644 --- a/syntax_checkers/javascript.vim +++ b/syntax_checkers/javascript.vim @@ -57,7 +57,7 @@ if s:checker == "gjslint" let gjslintconf = g:syntastic_gjslint_conf endif let makeprg = "gjslint" . gjslintconf . " --nosummary --unix_mode --nodebug_indentation --nobeep " . shellescape(expand('%')) - let errorformat="%f:%l:(New Error %n) %m,%f:%l:(%n) %m,%-G1 files checked, no errors found.,%-G%.%#" + let errorformat="%f:%l:(New Error -%\\?\%n) %m,%f:%l:(-%\\?%n) %m,%-G1 files checked, no errors found.,%-G%.%#" return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) endfunction