Skip to content

Commit e4d992d

Browse files
committed
Correct highlighting async function names in Python 3.5
1 parent 10d2c07 commit e4d992d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/python.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ else
176176
syn keyword pythonBoolean True False
177177
syn match pythonFunction "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
178178
syn keyword pythonStatement await
179-
syn match pythonStatement "\<async\s\+def\>" display
179+
syn match pythonStatement "\<async\s\+def\>" nextgroup=pythonFunction skipwhite
180180
syn match pythonStatement "\<async\s\+with\>" display
181181
syn match pythonStatement "\<async\s\+for\>" display
182182
syn match pythonStatement "\<async\s\+with\>" display

0 commit comments

Comments
 (0)