diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index b97c86f8..767a88e6 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.5.0-44' +let g:syntastic_version = '3.5.0-45' lockvar g:syntastic_version " Sanity checks {{{1 diff --git a/syntax_checkers/bro/bro.vim b/syntax_checkers/bro/bro.vim index 4107a89e..11a48fec 100644 --- a/syntax_checkers/bro/bro.vim +++ b/syntax_checkers/bro/bro.vim @@ -18,6 +18,11 @@ let g:loaded_syntastic_bro_bro_checker = 1 let s:save_cpo = &cpo set cpo&vim +function! SyntaxCheckers_bro_bro_GetHighlightRegex(item) + let term = matchstr(a:item['text'], '\m at or near "\zs[^"]\+\ze"') + return term != '' ? '\V\<' . escape(term, '\') . '\>' : '' +endfunction + function! SyntaxCheckers_bro_bro_IsAvailable() dict return system(self.getExecEscaped() . ' --help') =~# '--parse-only' endfunction @@ -27,6 +32,7 @@ function! SyntaxCheckers_bro_bro_GetLocList() dict "example: error in ./foo.bro, line 3: unknown identifier banana, at or near "banana" let errorformat = + \ 'fatal %trror in %f\, line %l: %m,' . \ '%trror in %f\, line %l: %m,' . \ '%tarning in %f\, line %l: %m'