Permalink
Browse files

javascript checker: make jshint 0.5.3 work

  • Loading branch information...
1 parent a97b9ea commit 8ca2028f3e82354ddf5c8cc4401767c899f72513 @scrooloose scrooloose committed Dec 9, 2011
Showing with 6 additions and 2 deletions.
  1. +6 −2 syntax_checkers/javascript.vim
@@ -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

0 comments on commit 8ca2028

Please sign in to comment.