Sqlint checker: add highlighting function.

This commit is contained in:
LCD 47 2015-07-16 09:53:06 +03:00
parent 1e475a7df5
commit d353962861
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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