File tree 4 files changed +7
-5
lines changed
4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Features
19
19
* New exceptions and builtins
20
20
* Doctests
21
21
* ` @decorator ` syntax
22
- * Class variables such as ` self ` and ` cls `
22
+ * Class variables such as ` self ` , ` cls ` , and ` mcs `
23
23
* Operators
24
24
* Highlighting of the following errors:
25
25
* Invalid symbols in source file
@@ -72,7 +72,7 @@ let g:python_highlight_all = 1
72
72
| ` g:python_highlight_space_errors ` | Highlight trailing spaces | ` 0 ` |
73
73
| ` g:python_highlight_doctests ` | Highlight doc-tests | ` 0 ` |
74
74
| ` g:python_highlight_func_calls ` | Highlight functions calls | ` 0 ` |
75
- | ` g:python_highlight_class_vars ` | Highlight class variables ` self ` and ` cls ` | ` 0 ` |
75
+ | ` g:python_highlight_class_vars ` | Highlight class variables ` self ` , ` cls ` , and ` mcs ` | ` 0 ` |
76
76
| ` g:python_highlight_operators ` | Highlight all operators | ` 0 ` |
77
77
| ` g:python_highlight_all ` | Enable all highlight options above, except for previously set. | ` 0 ` |
78
78
| ` g:python_highlight_file_headers_as_comments ` | Highlight shebang and coding headers as comments | ` 0 ` |
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Features
21
21
* New exceptions and builtins
22
22
* Doctests
23
23
* `@decorator` syntax
24
- * Class variables such as `self` and `cls `
24
+ * Class variables such as `self`, `cls`, and `mcs `
25
25
* Operators
26
26
* Highlighting of the following errors:
27
27
* Invalid symbols in source file
@@ -96,7 +96,7 @@ following command to your `~/.config/nvim/init.vim` or `~/.vimrc`: >
96
96
Highlight functions calls
97
97
98
98
`g:python_highlight_class_vars` (default `0`)
99
- Highlight class variables `self` and `cls `
99
+ Highlight class variables `self`, `cls`, and `mcs `
100
100
101
101
`g:python_highlight_operators` (default `0`)
102
102
Highlight all operators
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ syn keyword pythonStatement break continue del return pass yield global asse
76
76
syn keyword pythonStatement raise nextgroup =pythonExClass skipwhite
77
77
syn keyword pythonStatement def class nextgroup =pythonFunction skipwhite
78
78
if s: Enabled (' g:python_highlight_class_vars' )
79
- syn keyword pythonClassVar self cls
79
+ syn keyword pythonClassVar self cls mcs
80
80
endif
81
81
syn keyword pythonRepeat for while
82
82
syn keyword pythonConditional if elif else
Original file line number Diff line number Diff line change 11
11
with break continue del return pass raise global assert lambda yield
12
12
for while if elif else import as try except finally
13
13
14
+ self cls mcs
15
+
14
16
from test import var as name
15
17
16
18
raise Exception from ex
You can’t perform that action at this time.
0 commit comments