File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed
Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Features
1919 * New exceptions and builtins
2020 * Doctests
2121 * ` @decorator ` syntax
22- * Class variables such as ` self ` and ` cls `
22+ * Class variables such as ` self ` , ` cls ` , and ` mcs `
2323 * Operators
2424* Highlighting of the following errors:
2525 * Invalid symbols in source file
@@ -72,7 +72,7 @@ let g:python_highlight_all = 1
7272| ` g:python_highlight_space_errors ` | Highlight trailing spaces | ` 0 ` |
7373| ` g:python_highlight_doctests ` | Highlight doc-tests | ` 0 ` |
7474| ` 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 ` |
7676| ` g:python_highlight_operators ` | Highlight all operators | ` 0 ` |
7777| ` g:python_highlight_all ` | Enable all highlight options above, except for previously set. | ` 0 ` |
7878| ` 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
2121 * New exceptions and builtins
2222 * Doctests
2323 * `@decorator` syntax
24- * Class variables such as `self` and `cls `
24+ * Class variables such as `self`, `cls`, and `mcs `
2525 * Operators
2626* Highlighting of the following errors:
2727 * Invalid symbols in source file
@@ -96,7 +96,7 @@ following command to your `~/.config/nvim/init.vim` or `~/.vimrc`: >
9696 Highlight functions calls
9797
9898`g:python_highlight_class_vars` (default `0`)
99- Highlight class variables `self` and `cls `
99+ Highlight class variables `self`, `cls`, and `mcs `
100100
101101`g:python_highlight_operators` (default `0`)
102102 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
7676syn keyword pythonStatement raise nextgroup =pythonExClass skipwhite
7777syn keyword pythonStatement def class nextgroup =pythonFunction skipwhite
7878if s: Enabled (' g:python_highlight_class_vars' )
79- syn keyword pythonClassVar self cls
79+ syn keyword pythonClassVar self cls mcs
8080endif
8181syn keyword pythonRepeat for while
8282syn keyword pythonConditional if elif else
Original file line number Diff line number Diff line change 1111with break continue del return pass raise global assert lambda yield
1212for while if elif else import as try except finally
1313
14+ self cls mcs
15+
1416from test import var as name
1517
1618raise Exception from ex
You can’t perform that action at this time.
0 commit comments