make ruby recognise warnings as well as errors
This commit is contained in:
parent
75a06c41b0
commit
17434a6b0d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user