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
|
else
|
||||||
let makeprg = 'jshint ' . shellescape(expand("%"))
|
let makeprg = 'jshint ' . shellescape(expand("%"))
|
||||||
endif
|
endif
|
||||||
let errorformat = '%f: line %l\, col %c\, %m,%-G%.%#'
|
let errorformat = '%ELine %l:%c,%Z\\s%#Reason: %m,%C%.%#,%f: line %l\, col %c\, %m,%-G%.%#'
|
||||||
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
let errors = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
||||||
|
for i in errors
|
||||||
|
let i['bufnr'] = bufnr('')
|
||||||
|
endfor
|
||||||
|
return errors
|
||||||
endfunction
|
endfunction
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user