1
0
mirror of https://github.com/gryf/python-syntax.git synced 2025-12-17 11:30:27 +01:00

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 match pythonStatement "\<yield\s\+from\>" display
syn keyword pythonBoolean True False syn keyword pythonBoolean True False
syn match pythonFunction "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained 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 endif
" "