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

emacs-mode shouldn't highlight keywords in identifiers #20422

Closed
gsingh93 opened this issue Jan 2, 2015 · 2 comments
Closed

emacs-mode shouldn't highlight keywords in identifiers #20422

gsingh93 opened this issue Jan 2, 2015 · 2 comments

Comments

@gsingh93
Copy link
Contributor

gsingh93 commented Jan 2, 2015

emacs-mode is highlighting keywords in identifiers. An example:

fn fn_foo() {   
}

The fn in fn_foo() is highlighted when it shouldn't be.

@huonw
Copy link
Member

huonw commented Jan 4, 2015

cc #8793

bors added a commit that referenced this issue Jan 12, 2015
rust-mode.el recently started highlighting keywords that were substrings of identifiers. Identifiers such as `xyz_type` would have `type` highlighted, which isn't normal. This patch re-introduces `_` as a word constituent, so that keywords following a `_` don't get syntax highlighted as keywords. Fixes issue #20422
@swgillespie
Copy link
Contributor

This should be fixed now.

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

5 participants