Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust String Formatting Not Colored Differently #162

Open
marsfan opened this issue Apr 15, 2023 · 0 comments
Open

Rust String Formatting Not Colored Differently #162

marsfan opened this issue Apr 15, 2023 · 0 comments

Comments

@marsfan
Copy link

marsfan commented Apr 15, 2023

Please provide as much information as possible, usually I need these information to actually start working on an issue, so try to fill as much of these as possible

When working with Rust, string formatting should be colored differently, similar to how f-strings are colored in Python.

Sample code

println!("{line} abc");

Filename and Language selected

Filename: lib.rs
Language: Rust

Atom Original theme Screenshot

I don't use atom, this is more of a feature improvement.

VSCode theme Screenshot

image

Versions used

  • VSCode version: 1.77.3
  • Theme version: 2.3.0

Extra information

I am using the rust-lang.rust-analyzer plugin for Rust language support.

From testing, the formatting portions are indeed tokenized differently from normal string text:

Normal text:
image

Formatting Region:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants