diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index a26917a3..a6cb8ab1 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -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 diff --git a/syntax_checkers/vim/vimlint.vim b/syntax_checkers/vim/vimlint.vim index 210eeece..968337d7 100644 --- a/syntax_checkers/vim/vimlint.vim +++ b/syntax_checkers/vim/vimlint.vim @@ -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 !=# ''