mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-08 21:54:48 +08:00
Fix decorators to allow the same kind of characters that functions do
This commit is contained in:
@@ -179,7 +179,7 @@ endif
|
|||||||
"
|
"
|
||||||
|
|
||||||
syn match pythonDecorator "@" display nextgroup=pythonDottedName skipwhite
|
syn match pythonDecorator "@" display nextgroup=pythonDottedName skipwhite
|
||||||
syn match pythonDottedName "[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*" display contained
|
syn match pythonDottedName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*\%(\.\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*\)*" display contained
|
||||||
syn match pythonDot "\." display containedin=pythonDottedName
|
syn match pythonDot "\." display containedin=pythonDottedName
|
||||||
|
|
||||||
"
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user