Procházet zdrojové kódy

Fixed string.Template syntax

Dmitry Vasiliev před 16 roky
rodič
revize
ed21c2f0b0
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      python.vim

+ 1
- 1
python.vim Zobrazit soubor

@@ -188,7 +188,7 @@ endif
188 188
 
189 189
 if exists("python_highlight_string_templates") && python_highlight_string_templates != 0
190 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 192
 endif
193 193
 
194 194
 if exists("python_highlight_doctests") && python_highlight_doctests != 0