Skip to content

Add global variable to highlight self and cls from propasal 7 #8

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

Merged
merged 1 commit into from
Feb 23, 2017
Merged

Add global variable to highlight self and cls from propasal 7 #8

merged 1 commit into from
Feb 23, 2017

Conversation

monkoose
Copy link
Contributor

@monkoose monkoose commented Feb 22, 2017

Enclosed self and cls variables highlight in if statement as mentioned in #7.
By default set to 0.
With g:python_highlight_all enabled g:python_highlight_self_cls set to 1.

@@ -52,14 +52,17 @@ if s:Enabled('g:python_highlight_all')
call s:EnableByDefault('g:python_highlight_space_errors')
call s:EnableByDefault('g:python_highlight_doctests')
call s:EnableByDefault('g:python_print_as_function')
call s:EnableByDefault('g:python_highlight_self_cls')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is included in the python_highlight_all, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@monkoose monkoose changed the title Add global variable to highlight self and cls from propasal #7 Add global variable to highlight self and cls from propasal 7 Feb 22, 2017
@nfnty nfnty merged commit 5ffc69c into vim-python:master Feb 23, 2017
@nfnty
Copy link
Member

nfnty commented Feb 23, 2017

Renamed the option to g:python_highlight_class_vars. Thanks!

@monkoose monkoose deleted the selfcls branch February 23, 2017 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants