Skip to content

Only initial /// is highlighted in doc comments #15114

Closed
@charlespierce

Description

@charlespierce

As of the most recent release version of RA, I'm seeing the syntax highlighting for doc comments being broken. Rather than the full comment being colored the "comment" color, only the initial /// is, and the comment itself is in the standard foreground color. Additionally, VS Code generic highlighting like parentheses matching is applying to the comment text.

Screenshot 2023-06-22 at 1 10 18 PM

rust-analyzer version: Multiple

  • 0.3.1557-standalone (cd3bf9f 2023-06-18)
  • 0.4.1560-standalone (85493df 2023-06-21)
  • 0.4.1559-standalone (2d64a0a 2023-06-20)
  • 0.4.1550-standalone (1f1fe81 2023-06-12)

Note: This does not happen on the previous release version 0.3.1549-standalone (d567091f4 2023-06-11) nor on pre-release version 0.4.1548-standalone (d567091f4 2023-06-11)

rustc version: rustc 1.68.2 (9eb3afe9e 2023-03-27)

relevant settings: None that I'm aware of

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