Skip to content

Commit 8cc1bbb

Browse files
committed
narrow decorator match to exclude matrix multiplication
from hdima/python-syntax#47
1 parent 91430a4 commit 8cc1bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/python.vim

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ syn match OptionalParameters /\i*\ze=/ display contained
130130
" Decorators (new in Python 2.4)
131131
"
132132

133-
syn match pythonDecorator '@' display nextgroup=pythonDottedName skipwhite
133+
syn match pythonDecorator '^\s*\zs@' display nextgroup=pythonDottedName skipwhite
134134
if s:Python2Syntax()
135135
syn match pythonDottedName '[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*' display contained nextgroup=FunctionParameters
136136
else

0 commit comments

Comments
 (0)