Skip to content

Commit 84f5cf9

Browse files
committed
narrow decorator match to exclude matrix multiplication
1 parent 69760cb commit 84f5cf9

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*\)\@<=@" 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)