mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-08 21:54:48 +08:00
narrow decorator match to exclude matrix multiplication
from hdima/python-syntax#47
This commit is contained in:
@@ -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