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

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

No files matched your search

+1 -1
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
"