diff --git a/syntax/python.vim b/syntax/python.vim index 8e25a7f..ba34666 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -179,7 +179,7 @@ endif " 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 " diff --git a/test.py b/test.py index 0ee30a2..671d289 100644 --- a/test.py +++ b/test.py @@ -51,6 +51,7 @@ RuntimeWarning FutureWarning ImportWarning UnicodeWarning @ decoratorname @ object.__init__(arg1, arg2) +@ декоратор.décorateur # Numbers