Browse Source

Fixed string.Template syntax

Dmitry Vasiliev 15 years ago
parent
commit
ed21c2f0b0
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      python.vim

+ 1
- 1
python.vim View File

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