Skip to content

Commit 299d33b

Browse files
committed
Merge branch 'async_def_fix'
2 parents 10d2c07 + 2ed516d commit 299d33b

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Revision 3.6.0 (2015-11-XX):
2+
3+
- Fix 'async def' highlighting. Patch by Joongi Kim
4+
15
Revision 3.5.0 (2015-06-10):
26

37
- Add support for 'async ...' and 'await' keywords introduced in

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ List of the contributors in alphabetical order:
138138
- `Ihor Gorobets <https://github.com/iho>`_
139139
- `Jeroen Ruigrok van der Werven <https://github.com/ashemedai>`_
140140
- `John Eikenberry <https://github.com/eikenb>`_
141+
- `Joongi Kim <https://github.com/achimnol>`_
141142
- `Marc Weber <https://github.com/MarcWeber>`_
142143
- `Pedro Algarvio <https://github.com/s0undt3ch>`_
143144
- `Victor Salgado <https://github.com/mcsalgado>`_

syntax/python.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
" Ihor Gorobets
3232
" Jeroen Ruigrok van der Werven
3333
" John Eikenberry
34+
" Joongi Kim
3435
" Marc Weber
3536
" Pedro Algarvio
3637
" Victor Salgado
@@ -176,10 +177,9 @@ else
176177
syn keyword pythonBoolean True False
177178
syn match pythonFunction "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
178179
syn keyword pythonStatement await
179-
syn match pythonStatement "\<async\s\+def\>" display
180+
syn match pythonStatement "\<async\s\+def\>" nextgroup=pythonFunction skipwhite
180181
syn match pythonStatement "\<async\s\+with\>" display
181182
syn match pythonStatement "\<async\s\+for\>" display
182-
syn match pythonStatement "\<async\s\+with\>" display
183183
endif
184184

185185
"

test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ class Classname
1818
def функция
1919
class Класс
2020

21+
await
22+
async def Test
23+
async with
24+
async for
25+
2126
# Builtin objects.
2227

2328
True False Ellipsis None NotImplemented

0 commit comments

Comments
 (0)