Skip to content

let ref not highlighted #271

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

Closed
cyrus-and opened this issue Jun 7, 2018 · 2 comments
Closed

let ref not highlighted #271

cyrus-and opened this issue Jun 7, 2018 · 2 comments

Comments

@cyrus-and
Copy link

As the title says, take this example:

fn main() {
    let highlighted = ();
    let ref not_highlighted = ();
}

screen shot 2018-06-07 at 16 30 54

I'm using the latest version from MELPA.

@tromey
Copy link
Contributor

tromey commented Jun 7, 2018

Looks like a buglet here:

     ;; Type-inferred binding
     (,(concat "\\_<\\(?:let\\|ref\\)\\s-+\\(?:mut\\s-+\\)?" (rust-re-grab rust-re-ident) "\\_>") 1 font-lock-variable-name-face)

since if you remove the let from the source, the identifier is highlighted.

tromey added a commit to tromey/rust-mode that referenced this issue Jun 7, 2018
@cyrus-and
Copy link
Author

I didn't check your commit nor the regex but the same happens also with let ref mut.

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

2 participants