Browse Source

Correct highlighting async function names in Python 3.5

Joongi Kim 9 years ago
parent
commit
e4d992dc44
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      syntax/python.vim

+ 1
- 1
syntax/python.vim View File

176
   syn keyword pythonBoolean     True False
176
   syn keyword pythonBoolean     True False
177
   syn match   pythonFunction    "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
177
   syn match   pythonFunction    "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
178
   syn keyword pythonStatement   await
178
   syn keyword pythonStatement   await
179
-  syn match   pythonStatement   "\<async\s\+def\>" display
179
+  syn match   pythonStatement   "\<async\s\+def\>" nextgroup=pythonFunction skipwhite
180
   syn match   pythonStatement   "\<async\s\+with\>" display
180
   syn match   pythonStatement   "\<async\s\+with\>" display
181
   syn match   pythonStatement   "\<async\s\+for\>" display
181
   syn match   pythonStatement   "\<async\s\+for\>" display
182
   syn match   pythonStatement   "\<async\s\+with\>" display
182
   syn match   pythonStatement   "\<async\s\+with\>" display