rust-lang / vscode-rust

Rust extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=rust-lang.rust
Other
1.39k stars 167 forks source link

The `as` keyword is not highlighted on VSCode #671

Open silvioprog opened 5 years ago

silvioprog commented 5 years ago

Hi.

Sorry if it is not related to rls-vscode, but I've noticed the as keyword is not highlighted in VSCode:

image

however, in other tools, like (N)VIM, CLion and GNOME Builder, it is:

image

image

image

then I thought it would be relevant to report that.

Edit:

It seems this (extra) extension solves the problem:

image

Thank you!

jhpratt commented 5 years ago

Have you checked other themes? It appears the same as any other keyword (like u8) for me. The theme I use is "Material Theme Ocean"

JKAnderson409 commented 4 years ago

I recommend the tree-sitter extension for VSCode. It solved a number of similar problems that I noticed with this and other languages' extensions support for syntax highlighting.