atom-language-rust icon indicating copy to clipboard operation
atom-language-rust copied to clipboard

Syntax Highlighting does not highlight where bound for tuple structs

Open shingtaklam1324 opened this issue 7 years ago • 0 comments

This is highlighted correctly by RLS-VSCode


pub trait UnitTr
where
    f64: Rem<Self, Output = Unit<Self>>,
    Self: Sized,
{
}

whereas this does not highlight the where even though it is a Rust keyword and valid syntax.

pub struct Unit<Type: UnitTr>(Prefix, f64, PhantomData<Type>)
where
    f64: Rem<Type, Output = Unit<Type>>;

I originally posted this on rust-lang-nursery/rls-vscode#328 and was recommended to post here instead

shingtaklam1324 avatar May 26 '18 07:05 shingtaklam1324