Skip to content

Keyword 'where' not highlighted when defining struct #190

@alvitawa

Description

@alvitawa

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions