Преглед на файлове

Faster drawing of red diagnostic underlines

The new version of the regex executes faster.

Fixes #968.
Strahinja Val Markovic преди 11 години
родител
ревизия
68f3577b87
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      python/ycm/vimsupport.py

+ 1 - 1
python/ycm/vimsupport.py

@@ -161,7 +161,7 @@ def AddDiagnosticSyntaxMatch( line_num,
       "matchadd('{0}', '\%{1}l\%{2}c')".format( group, line_num, column_num ) )
   else:
     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 ) )