|
@@ -3,9 +3,9 @@
|
3
|
3
|
" Current Maintainer: Dmitry Vasiliev <dima at hlabs dot org>
|
4
|
4
|
" Previous Maintainer: Neil Schemenauer <nas at python dot ca>
|
5
|
5
|
" URL: https://github.com/hdima/python-syntax
|
6
|
|
-" Last Change: 2015-06-10
|
|
6
|
+" Last Change: 2015-11-01
|
7
|
7
|
" Filenames: *.py
|
8
|
|
-" Version: 3.5.0
|
|
8
|
+" Version: 3.6.0
|
9
|
9
|
"
|
10
|
10
|
" Based on python.vim (from Vim 6.1 distribution)
|
11
|
11
|
" by Neil Schemenauer <nas at python dot ca>
|
|
@@ -25,12 +25,14 @@
|
25
|
25
|
"
|
26
|
26
|
" Andrea Riciputi
|
27
|
27
|
" Anton Butanaev
|
|
28
|
+" Antony Lee
|
28
|
29
|
" Caleb Adamantine
|
29
|
30
|
" David Briscoe
|
30
|
31
|
" Elizabeth Myers
|
31
|
32
|
" Ihor Gorobets
|
32
|
33
|
" Jeroen Ruigrok van der Werven
|
33
|
34
|
" John Eikenberry
|
|
35
|
+" Joongi Kim
|
34
|
36
|
" Marc Weber
|
35
|
37
|
" Pedro Algarvio
|
36
|
38
|
" Victor Salgado
|
|
@@ -157,6 +159,9 @@ syn keyword pythonStatement with
|
157
|
159
|
syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite
|
158
|
160
|
syn keyword pythonRepeat for while
|
159
|
161
|
syn keyword pythonConditional if elif else
|
|
162
|
+" The standard pyrex.vim unconditionally removes the pythonInclude group, so
|
|
163
|
+" we provide a dummy group here to avoid crashing pyrex.vim.
|
|
164
|
+syn keyword pythonInclude import
|
160
|
165
|
syn keyword pythonImport import
|
161
|
166
|
syn keyword pythonException try except finally
|
162
|
167
|
syn keyword pythonOperator and in is not or
|
|
@@ -176,10 +181,9 @@ else
|
176
|
181
|
syn keyword pythonBoolean True False
|
177
|
182
|
syn match pythonFunction "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
|
178
|
183
|
syn keyword pythonStatement await
|
179
|
|
- syn match pythonStatement "\<async\s\+def\>" display
|
|
184
|
+ syn match pythonStatement "\<async\s\+def\>" nextgroup=pythonFunction skipwhite
|
180
|
185
|
syn match pythonStatement "\<async\s\+with\>" display
|
181
|
186
|
syn match pythonStatement "\<async\s\+for\>" display
|
182
|
|
- syn match pythonStatement "\<async\s\+with\>" display
|
183
|
187
|
endif
|
184
|
188
|
|
185
|
189
|
"
|