From 608280c9eeb8b717a5f6a19c6363fac6b8651216 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Tue, 13 Feb 2018 09:23:19 +0200 Subject: [PATCH] Checker eruby/ruby: fix errorformat for Ruby 2.5. --- plugin/syntastic.vim | 2 +- syntax_checkers/eruby/ruby.vim | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index cedcaed6..aa29bdf5 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -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 diff --git a/syntax_checkers/eruby/ruby.vim b/syntax_checkers/eruby/ruby.vim index bdc4915f..7891b7a5 100644 --- a/syntax_checkers/eruby/ruby.vim +++ b/syntax_checkers/eruby/ruby.vim @@ -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