We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39ba0d8 commit 941b582Copy full SHA for 941b582
syntax/python.vim
@@ -92,7 +92,7 @@ if s:Python2Syntax()
92
else
93
syn keyword pythonStatement as nonlocal
94
syn match pythonStatement '\v\.@<!<await>'
95
- syn match pythonFunction '[a-zA-Z_][a-zA-Z0-9_]*' display contained
+ syn match pythonFunction '\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*' display contained
96
syn match pythonStatement '\<async\s\+def\>' nextgroup=pythonFunction skipwhite
97
syn match pythonStatement '\<async\s\+with\>'
98
syn match pythonStatement '\<async\s\+for\>'
0 commit comments