Skip to content

(rust) quotes around a char emoji are not colored properly #3933

@tomsarry

Description

@tomsarry

Describe the issue
In rust, single quotes around an emoji are not colored properly.
However, autodetect (on csharp) successfully colors it.

Which language seems to have the issue?
Rust

Are you using highlight or highlightAuto?
highlight

Sample Code to Reproduce
https://jsfiddle.net/cawyx173/

rust, coloring doesn't work
image

autodetect (csharp), works
image

Expected behavior
When using rust highlighting, single quotes around an emoji should have the same color as single quotes around any other character.

Additional context
Syntax highlighting works properly using double quotes around emojis.
Problem seen in rust book.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions