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.
This commit is contained in:
parent
62ef08d334
commit
ea7d9779f0
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user