Browse Source

support for async keyword

lilydjwg 7 years ago
parent
commit
738e118831
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      syntax/python.vim

+ 1
- 1
syntax/python.vim View File

180
   syn match   pythonStatement   "\<yield\s\+from\>" display
180
   syn match   pythonStatement   "\<yield\s\+from\>" display
181
   syn keyword pythonBuiltinObj  None True False
181
   syn keyword pythonBuiltinObj  None True False
182
   syn match   pythonFunction    "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
182
   syn match   pythonFunction    "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
183
-  syn keyword pythonStatement   await
183
+  syn keyword pythonStatement   await async
184
   syn match   pythonStatement   "\<async\s\+def\>" nextgroup=pythonFunction skipwhite
184
   syn match   pythonStatement   "\<async\s\+def\>" nextgroup=pythonFunction skipwhite
185
   syn match   pythonStatement   "\<async\s\+with\>" display
185
   syn match   pythonStatement   "\<async\s\+with\>" display
186
   syn match   pythonStatement   "\<async\s\+for\>" display
186
   syn match   pythonStatement   "\<async\s\+for\>" display