Skip to content

Rust lexer does not support string continuation escapes #2102

Open
@Jisu-Woniu

Description

@Jisu-Woniu

Name of the lexer
Rust

Code sample
A sample of the code that produces the bug.

const REQUEST: &[u8] = b"GET http://example.com/ HTTP/1.1\r\n\
    Host: example.com\r\n\
    Accept: */*\r\n\
    \r\n";

It also helps if you can provide a link to a code sample on rouge.jneen.net.

Additional context
The REQUEST is a valid Rust string literal, as described in The Rust Reference, backslash at the end of line has special meaning in Rust.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfix-requestA request for a bugfix to be developed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions