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's syntax highlighting breaks after r#impl #147

@alexr00

Description

@alexr00

From @rustka in microsoft/vscode#81085

Rust's syntax highlighting breaks after using impl keyword as a raw identifier.


  • VSCode version: 1.38.1
  • OS version: Linux x64

Steps to reproduce:

  1. Open the editor;
  2. Set language mode to Rust;
  3. Paste the following code:
use r#impl;
fn main() {}
  1. Comment the first line by prefixing it with //;
    4.1. This failure could also be prevented by replacing r#impl with r#impl {}, but this is not the real solution for that case.
  2. The syntax highlighting works properly back again.

P.S.: I did test it on Atom editor (v1.40.1) and it seemed to work correctly.

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