|
@@ -2,9 +2,9 @@
|
2
|
2
|
" Language: Python
|
3
|
3
|
" Maintainer: Dmitry Vasiliev <dima at hlabs dot org>
|
4
|
4
|
" URL: https://github.com/hdima/python-syntax
|
5
|
|
-" Last Change: 2013-11-18
|
|
5
|
+" Last Change: 2014-12-27
|
6
|
6
|
" Filenames: *.py
|
7
|
|
-" Version: 3.3.6
|
|
7
|
+" Version: 3.3.7
|
8
|
8
|
"
|
9
|
9
|
" Based on python.vim (from Vim 6.1 distribution)
|
10
|
10
|
" by Neil Schemenauer <nas at python dot ca>
|
|
@@ -31,6 +31,7 @@
|
31
|
31
|
" Marc Weber
|
32
|
32
|
" Pedro Algarvio
|
33
|
33
|
" pydave at GitHub
|
|
34
|
+" Victor Salgado
|
34
|
35
|
" Will Gray
|
35
|
36
|
" Yuri Habrusiev
|
36
|
37
|
"
|
|
@@ -179,7 +180,11 @@ endif
|
179
|
180
|
"
|
180
|
181
|
|
181
|
182
|
syn match pythonDecorator "@" display nextgroup=pythonDottedName skipwhite
|
182
|
|
-syn match pythonDottedName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*\%(\.\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*\)*" display contained
|
|
183
|
+if s:Python2Syntax()
|
|
184
|
+ syn match pythonDottedName "[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*" display contained
|
|
185
|
+else
|
|
186
|
+ syn match pythonDottedName "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*\%(\.\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*\)*" display contained
|
|
187
|
+endif
|
183
|
188
|
syn match pythonDot "\." display containedin=pythonDottedName
|
184
|
189
|
|
185
|
190
|
"
|