Skip to content

Commit 4518992

Browse files
committed
add async/await syntax for 3.5
1 parent fd70ac2 commit 4518992

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

syntax/python.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,12 @@ endif
7575
syn keyword pythonStatement yield
7676
syn keyword pythonLambdaExpr lambda
7777
syn keyword pythonStatement with as
78+
syn keyword pythonStatement await
7879

7980
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
8084
syn match pythonFunction "\%(\%(def\s\|@\)\s*\)\@<=\h\%(\w\|\.\)*" contained nextgroup=pythonVars
8185
syn region pythonVars start="(" skip=+\(".*"\|'.*'\)+ end=")" contained contains=pythonParameters transparent keepend
8286
syn match pythonParameters "[^,]*" contained contains=pythonParam skipwhite

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy