mirror of
https://github.com/gryf/.vim.git
synced 2025-12-18 03:50:30 +01:00
Plugins update
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
"
|
||||
"Supports MRI and JRuby but loads the MRI syntax checker by default.
|
||||
"
|
||||
"Use the g:syntastic_ruby_checker option to specify which checker to load -
|
||||
"set it to "jruby" to load the jruby checker.
|
||||
"============================================================================
|
||||
if exists("loaded_ruby_syntax_checker")
|
||||
finish
|
||||
@@ -19,14 +23,8 @@ if !executable("ruby")
|
||||
finish
|
||||
endif
|
||||
|
||||
function! SyntaxCheckers_ruby_GetLocList()
|
||||
" we cannot set RUBYOPT on windows like that
|
||||
if has('win32') || has('win64')
|
||||
let makeprg = 'ruby -W1 -T1 -c '.shellescape(expand('%'))
|
||||
else
|
||||
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^,%W%f:%l: %m,%-C%.%#'
|
||||
if !exists("g:syntastic_ruby_checker")
|
||||
let g:syntastic_ruby_checker = "mri"
|
||||
endif
|
||||
exec "runtime! syntax_checkers/ruby/" . g:syntastic_ruby_checker . ".vim"
|
||||
|
||||
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user