Skip to content

Editor highlighting does not handle byte string (or C-string) raw literals correctly #1147

Open
@ChrisDenton

Description

@ChrisDenton

Consider:

fn main() {
    let a = r"abc\";
    let b = br"abc\";
    let c = cr"abc\";
}

playground

The first let statement works but for the rest the highlighting treats them as escaped strings rather than being raw.

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamCaused by a third-party component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions