Skip to content

Commit 711b1f1

Browse files
committed
syntax/python.vim: narrow decorator match to exclude matrix multiplication
from hdima/python-syntax#47
1 parent 0a84735 commit 711b1f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/python.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ endif
190190
" Decorators (new in Python 2.4)
191191
"
192192

193-
syn match pythonDecorator "@" display nextgroup=pythonDottedName skipwhite
193+
syn match pythonDecorator "^\s*\zs@" display nextgroup=pythonDottedName skipwhite
194194
if s:Python2Syntax()
195195
syn match pythonDottedName "[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*" display contained
196196
else

0 commit comments

Comments
 (0)