From f416158a35381ecf3041e74611e133cda5c7acc3 Mon Sep 17 00:00:00 2001 From: Chris Hoffman Date: Mon, 27 Sep 2010 15:08:31 -0500 Subject: [PATCH] Correct ruby syntax checker --- syntax_checkers/ruby.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax_checkers/ruby.vim b/syntax_checkers/ruby.vim index 7f6d4d02..0fea3e9e 100644 --- a/syntax_checkers/ruby.vim +++ b/syntax_checkers/ruby.vim @@ -21,9 +21,9 @@ endif function! SyntaxCheckers_ruby_GetLocList() if exists('g:ruby_path') - let makeprg = 'RUBYOPT= '.g:ruby_path.' -W1 -c %'.shellescape(expand('%')) + let makeprg = 'RUBYOPT= '.g:ruby_path.' -W1 -c '.shellescape(expand('%')) else - let makeprg = 'RUBYOPT= ruby -W1 -c %'.shellescape(expand('%')) + let makeprg = 'RUBYOPT= ruby -W1 -c '.shellescape(expand('%')) endif let errorformat = '%-GSyntax OK,%E%f:%l: syntax error\, %m,%Z%p^,%W%f:%l: warning: %m,%Z%p^,%-C%.%#'