From 17434a6b0dfb405a6fb4012b98c89036d6bbe781 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 11 Jul 2009 19:06:48 +1200 Subject: [PATCH] make ruby recognise warnings as well as errors --- syntax_checkers/ruby.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/ruby.vim b/syntax_checkers/ruby.vim index fb084787..055806b5 100644 --- a/syntax_checkers/ruby.vim +++ b/syntax_checkers/ruby.vim @@ -21,7 +21,7 @@ endif function! SyntaxCheckers_ruby_GetQFList() set makeprg=ruby\ -c\ % - set errorformat=%-GSyntax\ OK,%A%f:%l:\ syntax\ error\\,\ %m,%Z%p^,%-C%.%# + set errorformat=%-GSyntax\ OK,%E%f:%l:\ syntax\ error\\,\ %m,%Z%p^,%W%f:%l:\ warning:\ %m,%Z%p^,%-C%.%# silent make! return getqflist() endfunction