narrow decorator match to exclude matrix multiplication

from hdima/python-syntax#47
This commit is contained in:
lilydjwg
2017-02-17 15:42:43 +08:00
parent 91430a49b6
commit 8cc1bbb295

View File

@@ -130,7 +130,7 @@ syn match OptionalParameters /\i*\ze=/ display contained
" Decorators (new in Python 2.4)
"
syn match pythonDecorator '@' display nextgroup=pythonDottedName skipwhite
syn match pythonDecorator '^\s*\zs@' display nextgroup=pythonDottedName skipwhite
if s:Python2Syntax()
syn match pythonDottedName '[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*' display contained nextgroup=FunctionParameters
else