diff --git a/CHANGES.txt b/CHANGES.txt index 0452c07..2d3b520 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,9 @@ +Revision 3.6.0 (2015-11-XX): + + - Fix 'async def' highlighting. Patch by Joongi Kim + - Add dummy 'pythonInclude' group to avoid crashing standard pyrex.vim. + Patch by Antony Lee + Revision 3.5.0 (2015-06-10): - Add support for 'async ...' and 'await' keywords introduced in diff --git a/README.rst b/README.rst index 7e21687..f9cd20d 100644 --- a/README.rst +++ b/README.rst @@ -132,12 +132,14 @@ List of the contributors in alphabetical order: - `Andrea Riciputi `_ - Anton Butanaev +- `Antony Lee `_ - Caleb Adamantine - `David Briscoe `_ - `Elizabeth Myers `_ - `Ihor Gorobets `_ - `Jeroen Ruigrok van der Werven `_ - `John Eikenberry `_ +- `Joongi Kim `_ - `Marc Weber `_ - `Pedro Algarvio `_ - `Victor Salgado `_ diff --git a/syntax/python.vim b/syntax/python.vim index e461241..e963628 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -3,9 +3,9 @@ " Current Maintainer: Dmitry Vasiliev " Previous Maintainer: Neil Schemenauer " URL: https://github.com/hdima/python-syntax -" Last Change: 2015-06-10 +" Last Change: 2015-11-01 " Filenames: *.py -" Version: 3.5.0 +" Version: 3.6.0 " " Based on python.vim (from Vim 6.1 distribution) " by Neil Schemenauer @@ -25,12 +25,14 @@ " " Andrea Riciputi " Anton Butanaev +" Antony Lee " Caleb Adamantine " David Briscoe " Elizabeth Myers " Ihor Gorobets " Jeroen Ruigrok van der Werven " John Eikenberry +" Joongi Kim " Marc Weber " Pedro Algarvio " Victor Salgado @@ -157,6 +159,9 @@ syn keyword pythonStatement with syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite syn keyword pythonRepeat for while syn keyword pythonConditional if elif else +" The standard pyrex.vim unconditionally removes the pythonInclude group, so +" we provide a dummy group here to avoid crashing pyrex.vim. +syn keyword pythonInclude import syn keyword pythonImport import syn keyword pythonException try except finally syn keyword pythonOperator and in is not or @@ -176,10 +181,9 @@ else syn keyword pythonBoolean True False syn match pythonFunction "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained syn keyword pythonStatement await - syn match pythonStatement "\" display + syn match pythonStatement "\" nextgroup=pythonFunction skipwhite syn match pythonStatement "\" display syn match pythonStatement "\" display - syn match pythonStatement "\" display endif " diff --git a/test.py b/test.py index b80ea1e..df81a9a 100644 --- a/test.py +++ b/test.py @@ -18,6 +18,11 @@ class Classname def функция class Класс +await +async def Test +async with +async for + # Builtin objects. True False Ellipsis None NotImplemented