File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 74
74
75
75
syn keyword pythonStatement break continue del return pass yield global assert lambda with
76
76
syn 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
78
79
if s: Enabled (' g:python_highlight_class_vars' )
79
80
syn keyword pythonClassVar self cls mcs
80
81
endif
100
101
syn keyword pythonStatement as nonlocal
101
102
syn match pythonStatement ' \v\. @<!<await>'
102
103
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
103
105
syn match pythonStatement ' \< async\s\+ def\> ' nextgroup =pythonFunction skipwhite
104
106
syn match pythonStatement ' \< async\s\+ with\> '
105
107
syn match pythonStatement ' \< async\s\+ for\> '
@@ -499,6 +501,7 @@ if v:version >= 508 || !exists('did_python_syn_inits')
499
501
HiLink pythonBuiltinType Structure
500
502
501
503
HiLink pythonExClass Structure
504
+ HiLink pythonClass Structure
502
505
HiLink pythonClassVar Identifier
503
506
504
507
delcommand HiLink
Original file line number Diff line number Diff line change @@ -26,9 +26,13 @@ def functionname
26
26
test .functionname ()
27
27
test .functionname ()
28
28
class Classname
29
+ class classname
30
+ class classname_cls
29
31
def функция
30
32
функция ()
31
33
class Класс
34
+ class класс
35
+
32
36
33
37
# Keywords: Python 2
34
38
You can’t perform that action at this time.
0 commit comments