Skip to content

Commit

Permalink
Merge pull request vim-syntastic#363 from rbrown/ruby
Browse files Browse the repository at this point in the history
ruby/mri: ignore efm lines that start ...
  • Loading branch information
scrooloose committed Sep 25, 2012
2 parents 9331280 + 6c80fa9 commit 8cb3099
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion syntax_checkers/ruby/mri.vim
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ function! SyntaxCheckers_ruby_GetLocList()
"the word "possibly" in the warning
let errorformat = '%-G%.%#warning: %\(possibly %\)%\?useless use of == in void context'

let errorformat .= ',%-GSyntax OK,%E%f:%l: syntax error\, %m,%Z%p^,%W%f:%l: warning: %m,%Z%p^,%W%f:%l: %m,%-C%.%#'
" filter out lines starting with ...
" long lines are truncated and wrapped in ... %p then returns the wrong
" column offset
let errorformat .= ',%-G%\%.%\%.%\%.%.%#'

let errorformat .= ',%-GSyntax OK,%E%f:%l: syntax error\, %m'
let errorformat .= ',%Z%p^,%W%f:%l: warning: %m,%Z%p^,%W%f:%l: %m,%-C%.%#'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction

0 comments on commit 8cb3099

Please sign in to comment.