Skip to content

Rust String Formatting Not Colored Differently  #162

@marsfan

Description

@marsfan

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions