Faster drawing of red diagnostic underlines

The new version of the regex executes faster.

Fixes #968.
This commit is contained in:
Strahinja Val Markovic 2014-05-19 11:10:03 -07:00
parent feedc296db
commit 68f3577b87

View File

@ -161,7 +161,7 @@ def AddDiagnosticSyntaxMatch( line_num,
"matchadd('{0}', '\%{1}l\%{2}c')".format( group, line_num, column_num ) ) "matchadd('{0}', '\%{1}l\%{2}c')".format( group, line_num, column_num ) )
else: else:
return GetIntValue( return GetIntValue(
"matchadd('{0}', '\%{1}l\%{2}c\_.*\%{3}l\%{4}c')".format( "matchadd('{0}', '\%{1}l\%{2}c\_.\\{{-}}\%{3}l\%{4}c')".format(
group, line_num, column_num, line_end_num, column_end_num ) ) group, line_num, column_num, line_end_num, column_end_num ) )