diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index f39ddf4e..a26917a3 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.8.0-34' +let g:_SYNTASTIC_VERSION = '3.8.0-35' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/d/dscanner.vim b/syntax_checkers/d/dscanner.vim index c8916432..5f64e3a1 100644 --- a/syntax_checkers/d/dscanner.vim +++ b/syntax_checkers/d/dscanner.vim @@ -18,6 +18,11 @@ let g:loaded_syntastic_d_dscanner_checker = 1 let s:save_cpo = &cpo set cpo&vim +function! SyntaxCheckers_d_dscanner_GetHighlightRegex(i) + let term = matchstr(a:i['text'], '\m^.\{-}''\zs\S\+\ze''') + return term !=# '' ? '\V\<' . escape(term, '\') . '\>' : '' +endfunction + function! SyntaxCheckers_d_dscanner_GetLocList() dict let makeprg = self.makeprgBuild({ \ 'args_after': '--report',