diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 67bf41f0..eb7113ff 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.6.0-126' +let g:_SYNTASTIC_VERSION = '3.6.0-127' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/sql/sqlint.vim b/syntax_checkers/sql/sqlint.vim index d8650f36..a42b6649 100644 --- a/syntax_checkers/sql/sqlint.vim +++ b/syntax_checkers/sql/sqlint.vim @@ -13,6 +13,11 @@ let g:loaded_syntastic_sql_sqlint_checker = 1 let s:save_cpo = &cpo set cpo&vim +function! SyntaxCheckers_sql_sqlint_GetHighlightRegex(i) + let term = matchstr(a:i['text'], '\m at or near "\zs[^"]\+\ze"') + return term !=# '' ? '\V\<' . escape(term, '\') . '\>' : '' +endfunction + function! SyntaxCheckers_sql_sqlint_IsAvailable() dict if !executable(self.getExec()) return 0