Correct ruby syntax checker
This commit is contained in:
parent
ac00f2d6a7
commit
f416158a35
@ -21,9 +21,9 @@ endif
|
|||||||
|
|
||||||
function! SyntaxCheckers_ruby_GetLocList()
|
function! SyntaxCheckers_ruby_GetLocList()
|
||||||
if exists('g:ruby_path')
|
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
|
else
|
||||||
let makeprg = 'RUBYOPT= ruby -W1 -c %'.shellescape(expand('%'))
|
let makeprg = 'RUBYOPT= ruby -W1 -c '.shellescape(expand('%'))
|
||||||
endif
|
endif
|
||||||
let errorformat = '%-GSyntax OK,%E%f:%l: syntax error\, %m,%Z%p^,%W%f:%l: warning: %m,%Z%p^,%-C%.%#'
|
let errorformat = '%-GSyntax OK,%E%f:%l: syntax error\, %m,%Z%p^,%W%f:%l: warning: %m,%Z%p^,%-C%.%#'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user