Skip to content
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

Highlighting of built-ins with underscores. (syntax) #353

Closed
tony opened this issue Dec 16, 2013 · 1 comment
Closed

Highlighting of built-ins with underscores. (syntax) #353

tony opened this issue Dec 16, 2013 · 1 comment

Comments

@tony
Copy link

tony commented Dec 16, 2013

2013-12-16-223731_5206x1080_scrot

I apologize if this is a duplicate.

Taking a look at pocoo code / many python projects, here are some common variable names:

fix_tuple_repr - highlighting tuple and repr
implements_bool - highlight bool
range_type highlights range and type
file_something highlights file

I think built-in's with an underscore on either side should not be highlighted.

Is this part of python-mode's code? Would it be acceptable @klen if built-in's with underscores weren't highlighted?

@tony
Copy link
Author

tony commented Dec 31, 2013

@klen : resolved.

For the record (copied from the other issue):

A configuration issue on my end.

is_keyword option not including _ can cause this behavior to occur. I had this in my config because I borrowed it from someone.

By doing :set iskeyword+=_ and syntax off, then syntax on, things were fixed. I tracked down the problem in my config and corrected it.

tony/vim-config-framework@4a83b6c

Thank you.

@tony tony closed this as completed Dec 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant