Sfoglia il codice sorgente

support for async keyword

lilydjwg 8 anni fa
parent
commit
738e118831
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      syntax/python.vim

+ 1
- 1
syntax/python.vim Vedi 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