Checker eruby/ruby: fix errorformat for Ruby 2.5.

This commit is contained in:
LCD 47 2018-02-13 09:23:19 +02:00
parent 937d77d1f3
commit 608280c9ee
2 changed files with 4 additions and 2 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.8.0-101'
let g:_SYNTASTIC_VERSION = '3.8.0-104'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1

View File

@ -50,7 +50,9 @@ function! SyntaxCheckers_eruby_ruby_GetLocList() dict
\ ').gsub(''<%='',''<%''), nil, ''-'').src') .
\ ' | ' . self.getExecEscaped() . ' -w -c'
let errorformat = '%-G%\m%.%#warning: %\%%(possibly %\)%\?useless use of a literal in void context,'
let errorformat =
\ '%-G%\m%.%#warning: %\%%(possibly %\)%\?useless use of a literal in void context,' .
\ '%-G%\m%.%#warning: possibly useless use of a variable in void context,'
" filter out lines starting with ...
" long lines are truncated and wrapped in ... %p then returns the wrong