Skip to content

Keyword 'where' not highlighted when defining struct #190

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
alvitawa opened this issue Jul 6, 2017 · 0 comments · Fixed by #215
Closed

Keyword 'where' not highlighted when defining struct #190

alvitawa opened this issue Jul 6, 2017 · 0 comments · Fixed by #215

Comments

@alvitawa
Copy link

alvitawa commented Jul 6, 2017

Sublime Text Version

Sublime Text 3 (Build 3126)

Rust Enhanced Version

1.3.2

Operating system

Ubuntu 16.04 LTS

Expected behavior

When writing the following code:

pub trait Number {
    fn value(&self) -> i32;
}

pub struct IterHolder<A> where A: Number {
    num: A
}

impl<A> Number for IterHolder<A> where A: Number {
    fn value(&self) -> i32 {
	self.num.value()
    }
}

I would expect both where keywords to be highlighted.

Actual behavior

The keyword where is highlighted when implementing the Number trait, but not in the struct definition (With higlighted I mean having the color of other keywords like for and struct).

Steps to reproduce

  1. Input the code in a file with Rust Enhanced syntax.
@alvitawa alvitawa changed the title Keyword 'where' not highlighted when Keyword 'where' not highlighted when defining struct Jul 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants