mirror of
https://github.com/vim-python/python-syntax.git
synced 2025-12-09 14:14:47 +08:00
syntax: Fix unicode function names
This commit is contained in:
@@ -92,7 +92,7 @@ if s:Python2Syntax()
|
||||
else
|
||||
syn keyword pythonStatement as nonlocal
|
||||
syn match pythonStatement '\v\.@<!<await>'
|
||||
syn match pythonFunction '[a-zA-Z_][a-zA-Z0-9_]*' display contained
|
||||
syn match pythonFunction '\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*' display contained
|
||||
syn match pythonStatement '\<async\s\+def\>' nextgroup=pythonFunction skipwhite
|
||||
syn match pythonStatement '\<async\s\+with\>'
|
||||
syn match pythonStatement '\<async\s\+for\>'
|
||||
|
||||
Reference in New Issue
Block a user