javascript checker: make jshint 0.5.3 work

This commit is contained in:
Martin Grenfell 2011-12-09 12:13:46 +00:00
parent a97b9eaba8
commit 8ca2028f3e

View File

@ -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