Python 3.5 new syntax sugar

https://www.python.org/dev/peps/pep-0492/
This commit is contained in:
Ihor Gorobets
2015-05-27 18:12:08 +03:00
parent 44f1855902
commit 4d925a99dd

View File

@@ -174,6 +174,11 @@ else
syn match pythonStatement "\<yield\s\+from\>" display
syn keyword pythonBoolean True False
syn match pythonFunction "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
syn keyword pythonStatement await
syn match pythonStatement "\<async\s\+def\>" display
syn match pythonStatement "\<async\s\+with\>" display
syn match pythonStatement "\<async\s\+for\>" display
syn match pythonStatement "\<async\s\+with\>" display
endif
"