Skip to content

Macro brackets not colored in the latest version #16449

Closed
@xhrnca00

Description

@xhrnca00

The macro brackets are not colored in the latest version.

rust-analyzer version: 0.3.1823-standalone (7219414 2024-01-27)
rustc version: (irrelevant)

relevant settings: VSCode, a new settings profile with default configuration, only rust-analyzer installed

Example:

#[cfg(not(target_os = "os"))]
fn main() {
    println!("Hello, world!");
}

This looks like this in the latest version (default theme):
image

Before the update (rust-analyzer version: 0.3.1815-standalone (d410d4a 2024-01-21)), it looked different:
image

Notice the highlighted outer bracket pair, which does not happen in the latest version.

I also tried the Pre-Release version of the extension (rust-analyzer version: 0.4.1824-standalone (d13951f 2024-01-29)), but there are no changes.

Metadata

Metadata

Assignees

Labels

C-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions