Sqlint checker: add highlighting function.
This commit is contained in:
parent
1e475a7df5
commit
d353962861
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user