We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91430a4 commit 8cc1bbbCopy full SHA for 8cc1bbb
syntax/python.vim
@@ -130,7 +130,7 @@ syn match OptionalParameters /\i*\ze=/ display contained
130
" Decorators (new in Python 2.4)
131
"
132
133
-syn match pythonDecorator '@' display nextgroup=pythonDottedName skipwhite
+syn match pythonDecorator '^\s*\zs@' display nextgroup=pythonDottedName skipwhite
134
if s:Python2Syntax()
135
syn match pythonDottedName '[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*' display contained nextgroup=FunctionParameters
136
else
0 commit comments