浏览代码

Fixed string.Template syntax

Dmitry Vasiliev 16 年前
父节点
当前提交
ed21c2f0b0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      python.vim

+ 1
- 1
python.vim 查看文件

@@ -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