syntastic/syntax_checkers/ruby.vim
2009-07-11 15:56:48 +12:00

17 lines
366 B
VimL

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\ %
set errorformat=%A%f:%l:\ syntax\ error\\,\ %m,%Z%p^,%-C%.%#
silent make!
return getqflist()
endfunction