Skip to content

Commit

Permalink
Update python.vim
Browse files Browse the repository at this point in the history
  • Loading branch information
andriykohut committed Dec 2, 2015
1 parent 4518992 commit 5bd60fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions syntax/python.vim
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ endif
syn keyword pythonStatement await

syn keyword pythonStatement def nextgroup=pythonFunction skipwhite
syn match pythonStatement "\<async\s\+def\>" nextgroup=pythonFunction skipwhite
syn match pythonStatement "\<async\s\+with\>" display
syn match pythonStatement "\<async\s\+for\>" nextgroup=pythonRepeat skipwhite
syn match pythonStatement "\<async\s\+def\>" nextgroup=pythonFunction skipwhite
syn match pythonStatement "\<async\s\+with\>" display
syn match pythonStatement "\<async\s\+for\>" nextgroup=pythonRepeat skipwhite
syn match pythonFunction "\%(\%(def\s\|@\)\s*\)\@<=\h\%(\w\|\.\)*" contained nextgroup=pythonVars
syn region pythonVars start="(" skip=+\(".*"\|'.*'\)+ end=")" contained contains=pythonParameters transparent keepend
syn match pythonParameters "[^,]*" contained contains=pythonParam skipwhite
Expand Down

0 comments on commit 5bd60fa

Please sign in to comment.