mirror of
https://github.com/amix/vimrc
synced 2025-06-24 07:44:59 +08:00
Updated plugins
This commit is contained in:
@ -19,17 +19,9 @@ let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_ruby_jruby_GetLocList() dict
|
||||
if syntastic#util#isRunningWindows()
|
||||
let exe = self.getExecEscaped()
|
||||
let args = '-T1'
|
||||
else
|
||||
let exe = 'RUBYOPT= ' . self.getExecEscaped()
|
||||
let args = ''
|
||||
endif
|
||||
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'exe': exe,
|
||||
\ 'args': args,
|
||||
\ 'exe_before': (syntastic#util#isRunningWindows() ? '' : 'RUBYOPT='),
|
||||
\ 'args': (syntastic#util#isRunningWindows() ? '-T1' : ''),
|
||||
\ 'args_after': '-W1 -c' })
|
||||
|
||||
let errorformat =
|
||||
|
@ -19,7 +19,7 @@ set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_ruby_macruby_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'exe': 'RUBYOPT= ' . self.getExecEscaped(),
|
||||
\ 'exe_before': 'RUBYOPT=',
|
||||
\ 'args_after': '-W1 -c' })
|
||||
|
||||
let errorformat =
|
||||
|
@ -18,6 +18,13 @@ let g:loaded_syntastic_ruby_mri_checker = 1
|
||||
let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_ruby_mri_IsAvailable() dict
|
||||
if !exists('g:syntastic_ruby_mri_exec') && exists('g:syntastic_ruby_exec')
|
||||
let g:syntastic_ruby_mri_exec = g:syntastic_ruby_exec
|
||||
endif
|
||||
return executable(self.getExec())
|
||||
endfunction
|
||||
|
||||
function! SyntaxCheckers_ruby_mri_GetHighlightRegex(i)
|
||||
if stridx(a:i['text'], 'assigned but unused variable') >= 0
|
||||
let term = split(a:i['text'], ' - ')[1]
|
||||
@ -28,17 +35,8 @@ function! SyntaxCheckers_ruby_mri_GetHighlightRegex(i)
|
||||
endfunction
|
||||
|
||||
function! SyntaxCheckers_ruby_mri_GetLocList() dict
|
||||
if !exists('g:syntastic_ruby_exec')
|
||||
let g:syntastic_ruby_exec = self.getExec()
|
||||
endif
|
||||
|
||||
let exe = syntastic#util#shexpand(g:syntastic_ruby_exec)
|
||||
if !syntastic#util#isRunningWindows()
|
||||
let exe = 'RUBYOPT= ' . exe
|
||||
endif
|
||||
|
||||
let makeprg = self.makeprgBuild({
|
||||
\ 'exe': exe,
|
||||
\ 'exe_before': (syntastic#util#isRunningWindows() ? '' : 'RUBYOPT='),
|
||||
\ 'args_after': '-w -T1 -c' })
|
||||
|
||||
"this is a hack to filter out a repeated useless warning in rspec files
|
||||
|
@ -20,7 +20,11 @@ let s:save_cpo = &cpo
|
||||
set cpo&vim
|
||||
|
||||
function! SyntaxCheckers_ruby_rubylint_GetLocList() dict
|
||||
let makeprg = self.makeprgBuild({ 'args': 'analyze --presenter=syntastic' })
|
||||
if !exists('s:rubylint_new')
|
||||
let s:rubylint_new = syntastic#util#versionIsAtLeast(syntastic#util#getVersion(
|
||||
\ self.getExecEscaped() . ' --version'), [2])
|
||||
endif
|
||||
let makeprg = self.makeprgBuild({ 'args': (s:rubylint_new ? '' : 'analyze ') . '--presenter=syntastic' })
|
||||
|
||||
let errorformat = '%f:%t:%l:%c: %m'
|
||||
|
||||
|
Reference in New Issue
Block a user