commit
3ea9d60e3f
@ -10,7 +10,12 @@
|
|||||||
"
|
"
|
||||||
"============================================================================
|
"============================================================================
|
||||||
function! SyntaxCheckers_ruby_GetLocList()
|
function! SyntaxCheckers_ruby_GetLocList()
|
||||||
"let makeprg = ''
|
if has('win32')
|
||||||
"let errorformat = ''
|
let makeprg = 'jruby -W1 -T1 -c '.shellescape(expand('%'))
|
||||||
"return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
else
|
||||||
|
let makeprg = 'RUBYOPT= jruby -W1 -c '.shellescape(expand('%'))
|
||||||
|
endif
|
||||||
|
let errorformat = '%-GSyntax OK for %f,%ESyntaxError in %f:%l: syntax error\, %m,%Z%p^,%W%f:%l: warning: %m,%Z%p^,%W%f:%l: %m,%-C%.%#'
|
||||||
|
|
||||||
|
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user