Add `mcs` to class variables · cdonovick/python-syntax@50e7b34 · GitHub
Skip to content

Commit 50e7b34

Browse files
fishsouprecipecdonovick
authored andcommitted
Add mcs to class variables
Closes vim-python#74
1 parent 5fce754 commit 50e7b34

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions

‎doc/python-syntax.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

‎syntax/python.vim‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ syn keyword pythonStatement break continue del return pass yield global asse
7676
syn keyword pythonStatement raise nextgroup=pythonExClass skipwhite
7777
syn keyword pythonStatement def class nextgroup=pythonFunction skipwhite
7878
if s:Enabled('g:python_highlight_class_vars')
79-
syn keyword pythonClassVar self cls
79+
syn keyword pythonClassVar self cls mcs
8080
endif
8181
syn keyword pythonRepeat for while
8282
syn keyword pythonConditional if elif else

‎tests/test.py‎

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)