mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-12 07:31:51 +08:00
Correct highlighting async function names in Python 3.5
This commit is contained in:
@@ -176,7 +176,7 @@ else
|
|||||||
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 keyword pythonStatement await
|
||||||
syn match pythonStatement "\<async\s\+def\>" display
|
syn match pythonStatement "\<async\s\+def\>" nextgroup=pythonFunction skipwhite
|
||||||
syn match pythonStatement "\<async\s\+with\>" display
|
syn match pythonStatement "\<async\s\+with\>" display
|
||||||
syn match pythonStatement "\<async\s\+for\>" display
|
syn match pythonStatement "\<async\s\+for\>" display
|
||||||
syn match pythonStatement "\<async\s\+with\>" display
|
syn match pythonStatement "\<async\s\+with\>" display
|
||||||
|
|||||||
Reference in New Issue
Block a user