Skip to content

Add mcs to self and cls class variables #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Features
* New exceptions and builtins
* Doctests
* `@decorator` syntax
* Class variables such as `self` and `cls`
* Class variables such as `self`, `cls` and `mcs`
* Operators
* Highlighting of the following errors:
* Invalid symbols in source file
Expand Down Expand Up @@ -72,7 +72,7 @@ let g:python_highlight_all = 1
| `g:python_highlight_space_errors` | Highlight trailing spaces | `0` |
| `g:python_highlight_doctests` | Highlight doc-tests | `0` |
| `g:python_highlight_func_calls` | Highlight functions calls | `0` |
| `g:python_highlight_class_vars` | Highlight class variables `self` and `cls` | `0` |
| `g:python_highlight_class_vars` | Highlight class variables `self`, `cls` and `mcs` | `0` |
| `g:python_highlight_operators` | Highlight all operators | `0` |
| `g:python_highlight_all` | Enable all highlight options above, except for previously set. | `0` |
| `g:python_highlight_file_headers_as_comments` | Highlight shebang and coding headers as comments | `0` |
Expand Down
4 changes: 2 additions & 2 deletions doc/python-syntax.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Features
* New exceptions and builtins
* Doctests
* `@decorator` syntax
* Class variables such as `self` and `cls`
* Class variables such as `self`, `cls` and `mcs`
* Operators
* Highlighting of the following errors:
* Invalid symbols in source file
Expand Down Expand Up @@ -96,7 +96,7 @@ following command to your `~/.config/nvim/init.vim` or `~/.vimrc`: >
Highlight functions calls

`g:python_highlight_class_vars` (default `0`)
Highlight class variables `self` and `cls`
Highlight class variables `self`, `cls` and `mcs`

`g:python_highlight_operators` (default `0`)
Highlight all operators
Expand Down
2 changes: 1 addition & 1 deletion syntax/python.vim
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ syn keyword pythonStatement break continue del return pass yield global asse
syn keyword pythonStatement raise nextgroup=pythonExClass skipwhite
syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite
if s:Enabled('g:python_highlight_class_vars')
syn keyword pythonClassVar self cls
syn keyword pythonClassVar self cls mcs
endif
syn keyword pythonRepeat for while
syn keyword pythonConditional if elif else
Expand Down