Skip to content

Commit ed21c2f

Browse files
committed
Fixed string.Template syntax
1 parent 907ec01 commit ed21c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ endif
188188

189189
if exists("python_highlight_string_templates") && python_highlight_string_templates != 0
190190
" 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
192192
endif
193193

194194
if exists("python_highlight_doctests") && python_highlight_doctests != 0

0 commit comments

Comments
 (0)