We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd70ac2 commit 4518992Copy full SHA for 4518992
1 file changed
syntax/python.vim
@@ -75,8 +75,12 @@ endif
75
syn keyword pythonStatement yield
76
syn keyword pythonLambdaExpr lambda
77
syn keyword pythonStatement with as
78
+ syn keyword pythonStatement await
79
80
syn keyword pythonStatement def nextgroup=pythonFunction skipwhite
81
+ syn match pythonStatement "\<async\s\+def\>" nextgroup=pythonFunction skipwhite
82
+ syn match pythonStatement "\<async\s\+with\>" display
83
+ syn match pythonStatement "\<async\s\+for\>" nextgroup=pythonRepeat skipwhite
84
syn match pythonFunction "\%(\%(def\s\|@\)\s*\)\@<=\h\%(\w\|\.\)*" contained nextgroup=pythonVars
85
syn region pythonVars start="(" skip=+\(".*"\|'.*'\)+ end=")" contained contains=pythonParameters transparent keepend
86
syn match pythonParameters "[^,]*" contained contains=pythonParam skipwhite
0 commit comments