mirror of
https://github.com/vim-python/python-syntax.git
synced 2026-01-25 12:26:56 +08:00
@@ -74,7 +74,8 @@ endif
|
||||
|
||||
syn keyword pythonStatement break continue del return pass yield global assert lambda with
|
||||
syn keyword pythonStatement raise nextgroup=pythonExClass skipwhite
|
||||
syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite
|
||||
syn keyword pythonStatement def nextgroup=pythonFunction skipwhite
|
||||
syn keyword pythonStatement class nextgroup=pythonClass skipwhite
|
||||
if s:Enabled('g:python_highlight_class_vars')
|
||||
syn keyword pythonClassVar self cls mcs
|
||||
endif
|
||||
@@ -100,6 +101,7 @@ else
|
||||
syn keyword pythonStatement as nonlocal
|
||||
syn match pythonStatement '\v\.@<!<await>'
|
||||
syn match pythonFunction '\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*' display contained
|
||||
syn match pythonClass '\%([^[: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\>'
|
||||
@@ -499,6 +501,7 @@ if v:version >= 508 || !exists('did_python_syn_inits')
|
||||
HiLink pythonBuiltinType Structure
|
||||
|
||||
HiLink pythonExClass Structure
|
||||
HiLink pythonClass Structure
|
||||
HiLink pythonClassVar Identifier
|
||||
|
||||
delcommand HiLink
|
||||
|
||||
@@ -26,9 +26,13 @@ functionname ()
|
||||
test.functionname()
|
||||
test.functionname ()
|
||||
class Classname
|
||||
class classname
|
||||
class classname_cls
|
||||
def функция
|
||||
функция()
|
||||
class Класс
|
||||
class класс
|
||||
|
||||
|
||||
# Keywords: Python 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user