Minor fix: highlighting for flex.

This commit is contained in:
LCD 47 2013-12-02 16:13:46 +02:00
parent 7e8c120d49
commit f187c3b50b

View File

@ -23,7 +23,7 @@ function! SyntaxCheckers_lex_flex_GetHighlightRegex(item)
\ '\m^\(unrecognized %option\|bad <start condition>\|bad character\( class expression\)\=\): \zs.*')
if term == ''
let term = matchstr(a:item['text'],
\ '\m^\(Definition value for\|undefined definition\) {\zs[^}]\+\ze}')
\ '\m^\(Definition value for\|undefined definition\) \zs{[^}]\+}\ze')
endif
return term != '' ? '\V' . term : ''