From c2c6a075113adbfcc4f1ad5b1c0200a0d35ceeb6 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Thu, 12 May 2016 21:49:59 +0300 Subject: [PATCH] Checker ttl: cleanup. --- plugin/syntastic.vim | 2 +- syntax_checkers/turtle/ttl.vim | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 171d074d..9a7dffe6 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.7.0-135' +let g:_SYNTASTIC_VERSION = '3.7.0-137' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/turtle/ttl.vim b/syntax_checkers/turtle/ttl.vim index f258ca2b..c28e3547 100644 --- a/syntax_checkers/turtle/ttl.vim +++ b/syntax_checkers/turtle/ttl.vim @@ -17,12 +17,15 @@ let g:loaded_syntastic_turtle_ttl_checker = 1 let s:save_cpo = &cpo set cpo&vim -function! SyntaxCheckers_turtle_ttl_GetLocList() dict - let makeprg = self.makeprgBuild({ 'post_args_after': '' }) +function! SyntaxCheckers_turtle_ttl_GetHighlightRegex(item) + let term = matchstr(a:item['text'], '\m"\zs[^"]\+\ze"') + return term !=# '' ? '\V\<' . escape(term, '\') . '\>' : '' +endfunction - let errorformat = - \ '%E[Error: %m at line %l.],' . - \ '%E[Error: %m on line %l.]' +function! SyntaxCheckers_turtle_ttl_GetLocList() dict + let makeprg = self.makeprgBuild({}) + + let errorformat = '%\m[Error: %m %\%%(at%\|on%\) line %l%\%.]' return SyntasticMake({ \ 'makeprg': makeprg,