Fix decorators to allow the same kind of characters that functions do

This commit is contained in:
Victor Salgado
2014-12-19 06:47:25 -02:00
parent 453269d0f8
commit 9dc6765ad1
2 changed files with 2 additions and 1 deletions

View File

@@ -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
"