Stream: t-compiler/wg-rls-2.0

Topic: Syntax Highlighting partially broken?

veykril (May 09 2020 at 21:48, on Zulip):

I just started vscode to be greeted by struct names suddenly having the same color as keywords, at least when using the One Dark Pro theme as well as fields having the same color as functions now. Is this already a known problem that recently popped up? Code_uDWfPvtyqL.png

veykril (May 09 2020 at 21:55, on Zulip):

In other themes, structs and keywords dont have the same color, but structs and type aliases do not share the same color either + not using RA gives a different color spread(with the default rust syntax highlighting) than when using it.

veykril (May 09 2020 at 22:14, on Zulip):

Okay updating to RA nightly seems to have fixed the problem

George Fraser (May 10 2020 at 00:20, on Zulip):

Textmate scopes can be really weird and surprising. The fact that struct names were colored like keywords was a VSCode bug, which they just fixed, that's why nightly is better for that one:

There are a bunch of other small issues with the textmate scopes used by semantic coloring, including the one you mentioned about fields getting colored like functions. I've proposed a PR in rust-analyzer to fix those:

veykril (May 10 2020 at 08:54, on Zulip):

Ah I see, I already suspected Semantic coloring, thanks for clarifying

Last update: Sep 22 2020 at 02:00UTC