From 22ea943e22e3d8644388862af209486835f5a030 Mon Sep 17 00:00:00 2001 From: fishsouprecipe Date: Fri, 25 Sep 2020 09:24:21 +0300 Subject: [PATCH 1/2] Added 'mcs' next to 'self' and 'cls' --- syntax/python.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/python.vim b/syntax/python.vim index a7f6edc..9b5efb4 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -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 From 419a539774d648de1b2144d0930f2f5c27a3b8a1 Mon Sep 17 00:00:00 2001 From: fishsouprecipe Date: Fri, 25 Sep 2020 09:32:06 +0300 Subject: [PATCH 2/2] Added 'mcs' next to 'self' and 'cls' --- README.md | 4 ++-- doc/python-syntax.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 922c335..7389e5d 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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` | diff --git a/doc/python-syntax.txt b/doc/python-syntax.txt index 59eb0ef..22baf1c 100644 --- a/doc/python-syntax.txt +++ b/doc/python-syntax.txt @@ -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 @@ -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