forked from dbp/sublime-rust
-
Notifications
You must be signed in to change notification settings - Fork 105
Closed
Labels
Description
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
- Input the code in a file with Rust Enhanced syntax.