Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Rust syntax highlighting breaks with raw strings in attributes #151

@alexr00

Description

@alexr00

From @ExoticMatter in microsoft/vscode#95782

VSCode Version: 1.44.2

When raw string literals that use ##s appear in attributes in a Rust file, syntax highlighting breaks.

Steps to Reproduce:

  1. Copy the following code into a Rust source file:
#[cfg(feature = r#"""#)]
const _: () = ();

You will get something similar to the following:

Screenshot_20200421_121815

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions