2009-07-10 19:09:52 -04:00
|
|
|
if exists("loaded_ruby_syntax_checker")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
let loaded_ruby_syntax_checker = 1
|
|
|
|
|
|
|
|
"bail if the user doesnt have ruby installed
|
|
|
|
if !executable("ruby")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
function! SyntaxCheckers_ruby_GetQFList()
|
|
|
|
set makeprg=ruby\ -c\ %
|
2009-07-10 23:56:48 -04:00
|
|
|
set errorformat=%A%f:%l:\ syntax\ error\\,\ %m,%Z%p^,%-C%.%#
|
2009-07-10 19:09:52 -04:00
|
|
|
silent make!
|
|
|
|
return getqflist()
|
|
|
|
endfunction
|