File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 7474
7575syn keyword pythonStatement break continue del return pass yield global assert lambda with
7676syn keyword pythonStatement raise nextgroup =pythonExClass skipwhite
77- syn keyword pythonStatement def class nextgroup =pythonFunction skipwhite
77+ syn keyword pythonStatement def nextgroup =pythonFunction skipwhite
78+ syn keyword pythonStatement class nextgroup =pythonClass skipwhite
7879if s: Enabled (' g:python_highlight_class_vars' )
7980 syn keyword pythonClassVar self cls mcs
8081endif
100101 syn keyword pythonStatement as nonlocal
101102 syn match pythonStatement ' \v\. @<!<await>'
102103 syn match pythonFunction ' \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *' display contained
104+ syn match pythonClass ' \% ([^[:cntrl:][:space:][:punct:][:digit:]]\| _\)\% ([^[:cntrl:][:punct:][:space:]]\| _\) *' display contained
103105 syn match pythonStatement ' \< async\s\+ def\> ' nextgroup =pythonFunction skipwhite
104106 syn match pythonStatement ' \< async\s\+ with\> '
105107 syn match pythonStatement ' \< async\s\+ for\> '
@@ -499,6 +501,7 @@ if v:version >= 508 || !exists('did_python_syn_inits')
499501 HiLink pythonBuiltinType Structure
500502
501503 HiLink pythonExClass Structure
504+ HiLink pythonClass Structure
502505 HiLink pythonClassVar Identifier
503506
504507 delcommand HiLink
Original file line number Diff line number Diff line change @@ -26,9 +26,13 @@ def functionname
2626test .functionname ()
2727test .functionname ()
2828class Classname
29+ class classname
30+ class classname_cls
2931def функция
3032функция ()
3133class Класс
34+ class класс
35+
3236
3337# Keywords: Python 2
3438
You can’t perform that action at this time.
0 commit comments