|
@@ -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-06-02
|
|
5
|
+" Last Change: 2013-08-11
|
6
|
6
|
" Filenames: *.py
|
7
|
|
-" Version: 3.3.3
|
|
7
|
+" Version: 3.3.4
|
8
|
8
|
"
|
9
|
9
|
" Based on python.vim (from Vim 6.1 distribution)
|
10
|
10
|
" by Neil Schemenauer <nas at python dot ca>
|
|
@@ -30,6 +30,7 @@
|
30
|
30
|
" Marc Weber
|
31
|
31
|
" Pedro Algarvio
|
32
|
32
|
" Will Gray
|
|
33
|
+" Yuri Habrusiev
|
33
|
34
|
"
|
34
|
35
|
" Options
|
35
|
36
|
" =======
|
|
@@ -159,8 +160,8 @@ if s:Python2Syntax()
|
159
|
160
|
syn keyword pythonPreCondit as
|
160
|
161
|
syn match pythonFunction "[a-zA-Z_][a-zA-Z0-9_]*" display contained
|
161
|
162
|
else
|
162
|
|
- syn keyword pythonStatement as nonlocal
|
163
|
|
- syn keyword pythonBoolean True False None
|
|
163
|
+ syn keyword pythonStatement as nonlocal None
|
|
164
|
+ syn keyword pythonBoolean True False
|
164
|
165
|
syn match pythonFunction "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
|
165
|
166
|
endif
|
166
|
167
|
|
|
@@ -371,7 +372,8 @@ syn match pythonFloat "\<\d\+\.\d*\%([eE][+-]\=\d\+\)\=[jJ]\=" display
|
371
|
372
|
|
372
|
373
|
if s:Enabled("g:python_highlight_builtin_objs")
|
373
|
374
|
if s:Python2Syntax()
|
374
|
|
- syn keyword pythonBuiltinObj True False None
|
|
375
|
+ syn keyword pythonBuiltinObj None
|
|
376
|
+ syn keyword pythonBoolean True False
|
375
|
377
|
endif
|
376
|
378
|
syn keyword pythonBuiltinObj Ellipsis NotImplemented
|
377
|
379
|
syn keyword pythonBuiltinObj __debug__ __doc__ __file__ __name__ __package__
|