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

Fixed string.Template syntax

Dmitry Vasiliev преди 17 години
родител
ревизия
ed21c2f0b0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      python.vim

+ 1
- 1
python.vim Целия файл

188
 
188
 
189
 if exists("python_highlight_string_templates") && python_highlight_string_templates != 0
189
 if exists("python_highlight_string_templates") && python_highlight_string_templates != 0
190
   " String templates
190
   " String templates
191
-  syn match pythonStrTemplate	"\$\(\$\|{[^}]*}\|[a-zA-Z_][a-zA-Z0-9_]*\)" contained containedin=pythonString,pythonUniString,pythonRawString,pythonUniRawString
191
+  syn match pythonStrTemplate	"\$\(\$\|{[a-zA-Z_][a-zA-Z0-9_]*}\|[a-zA-Z_][a-zA-Z0-9_]*\)" contained containedin=pythonString,pythonUniString,pythonRawString,pythonUniRawString
192
 endif
192
 endif
193
 
193
 
194
 if exists("python_highlight_doctests") && python_highlight_doctests != 0
194
 if exists("python_highlight_doctests") && python_highlight_doctests != 0