Skip to content

Token StringContinuation does not specify whitespace-consumption behavior #637

@Belu-cat

Description

@Belu-cat

The whitespace-consumption behavior of StringContinuation (§2.4.6.1:2) is not defined. This behavior is defined in the Rust reference. A naïve implementation of StringContinuation based solely off of the FLS will incorrectly parse (note the whitespace):

    "Multi\
    line"

as equivalent to "Multi line", which is incorrect.

Instead, StringContinuation can be more accurately described as:

StringContinuation is the character sequence 0x5C 0x0A (reverse solidus, new line) followed by a whitespace string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions