We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ea215a9 + 9dc6765 commit 9209dd0Copy full SHA for 9209dd0
2 files changed
syntax/python.vim
@@ -179,7 +179,7 @@ endif
179
"
180
181
syn match pythonDecorator "@" display nextgroup=pythonDottedName skipwhite
182
-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
183
syn match pythonDot "\." display containedin=pythonDottedName
184
185
test.py
@@ -51,6 +51,7 @@ class Класс
51
52
@ decoratorname
53
@ object.__init__(arg1, arg2)
54
+@ декоратор.décorateur
55
56
# Numbers
57
0 commit comments