Checker ttl: cleanup.
This commit is contained in:
parent
2b9f030e90
commit
c2c6a07511
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.7.0-135'
|
let g:_SYNTASTIC_VERSION = '3.7.0-137'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -17,12 +17,15 @@ let g:loaded_syntastic_turtle_ttl_checker = 1
|
|||||||
let s:save_cpo = &cpo
|
let s:save_cpo = &cpo
|
||||||
set cpo&vim
|
set cpo&vim
|
||||||
|
|
||||||
function! SyntaxCheckers_turtle_ttl_GetLocList() dict
|
function! SyntaxCheckers_turtle_ttl_GetHighlightRegex(item)
|
||||||
let makeprg = self.makeprgBuild({ 'post_args_after': '' })
|
let term = matchstr(a:item['text'], '\m"\zs[^"]\+\ze"')
|
||||||
|
return term !=# '' ? '\V\<' . escape(term, '\') . '\>' : ''
|
||||||
|
endfunction
|
||||||
|
|
||||||
let errorformat =
|
function! SyntaxCheckers_turtle_ttl_GetLocList() dict
|
||||||
\ '%E[Error: %m at line %l.],' .
|
let makeprg = self.makeprgBuild({})
|
||||||
\ '%E[Error: %m on line %l.]'
|
|
||||||
|
let errorformat = '%\m[Error: %m %\%%(at%\|on%\) line %l%\%.]'
|
||||||
|
|
||||||
return SyntasticMake({
|
return SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
|
Loading…
Reference in New Issue
Block a user