javascript checker: make jshint 0.5.3 work
This commit is contained in:
parent
a97b9eaba8
commit
8ca2028f3e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user