atom-language-rust icon indicating copy to clipboard operation
atom-language-rust copied to clipboard

Rust syntax highlighting breaks with raw strings in attributes

Open alexr00 opened this issue 5 years ago • 1 comments

From @ExoticMatter in https://github.com/microsoft/vscode/issues/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

alexr00 avatar Apr 23 '20 09:04 alexr00

I opened #154 to address this! But it seems to have failed in CI, and I'm not sure how to make progress getting it merged.

sloane-shark avatar Aug 14 '20 17:08 sloane-shark