Checker vim/vimlint: globpath() with 3 arguments appeared in Vim 7.2-051.
This commit is contained in:
parent
b2b125cfad
commit
5d9a0bc387
@ -19,7 +19,7 @@ if has('reltime')
|
||||
lockvar! g:_SYNTASTIC_START
|
||||
endif
|
||||
|
||||
let g:_SYNTASTIC_VERSION = '3.8.0-35'
|
||||
let g:_SYNTASTIC_VERSION = '3.8.0-38'
|
||||
lockvar g:_SYNTASTIC_VERSION
|
||||
|
||||
" Sanity checks {{{1
|
||||
|
@ -36,8 +36,14 @@ function! SyntaxCheckers_vim_vimlint_GetHighlightRegex(item) " {{{1
|
||||
endfunction " }}}1
|
||||
|
||||
function! SyntaxCheckers_vim_vimlint_IsAvailable() dict " {{{1
|
||||
let vimlparser = globpath(&runtimepath, 'autoload/vimlparser.vim', 1)
|
||||
let vimlint = globpath(&runtimepath, 'autoload/vimlint.vim', 1)
|
||||
try
|
||||
" Vim 7.2-051 and later
|
||||
let vimlparser = globpath(&runtimepath, 'autoload/vimlparser.vim', 1)
|
||||
let vimlint = globpath(&runtimepath, 'autoload/vimlint.vim', 1)
|
||||
catch /\m^Vim\%((\a\+)\)\=:E118/
|
||||
let vimlparser = globpath(&runtimepath, 'autoload/vimlparser.vim')
|
||||
let vimlint = globpath(&runtimepath, 'autoload/vimlint.vim')
|
||||
endtry
|
||||
call self.log("globpath(&runtimepath, 'autoload/vimlparser.vim', 1) = " . string(vimlparser) . ', ' .
|
||||
\ "globpath(&runtimepath, 'autoload/vimlint.vim', 1) = " . string(vimlint))
|
||||
return vimlparser !=# '' && vimlint !=# ''
|
||||
|
Loading…
Reference in New Issue
Block a user