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,7 +180,7 @@ else
180 180
   syn match   pythonStatement   "\<yield\s\+from\>" display
181 181
   syn keyword pythonBuiltinObj  None True False
182 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 184
   syn match   pythonStatement   "\<async\s\+def\>" nextgroup=pythonFunction skipwhite
185 185
   syn match   pythonStatement   "\<async\s\+with\>" display
186 186
   syn match   pythonStatement   "\<async\s\+for\>" display