make ruby recognise warnings as well as errors

This commit is contained in:
Martin Grenfell 2009-07-11 19:06:48 +12:00
parent 75a06c41b0
commit 17434a6b0d

View File

@ -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