mirror of
https://github.com/vim-python/python-syntax.git
synced 2026-10-02 16:33:48 +08:00
narrow decorator match to exclude matrix multiplication
from hdima/python-syntax#47
This commit is contained in:
1 parent
91430a49b6
commit
8cc1bbb295
1 file changed
+1
-1
+1
-1
@@ -130,7 +130,7 @@ syn match OptionalParameters /\i*\ze=/ display contained
|
|||||||
" Decorators (new in Python 2.4)
|
" 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()
|
if s:Python2Syntax()
|
||||||
syn match pythonDottedName '[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*' display contained nextgroup=FunctionParameters
|
syn match pythonDottedName '[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*' display contained nextgroup=FunctionParameters
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user