Skip to content

Parsing error for unicode in string literals #207

@theawless

Description

@theawless

The character A can be represented as \uuu0041. I noticed that it parses for character literals correctly but not string literals.

'\uuu0041';
program [0, 0] - [1, 0]
  expression_statement [0, 0] - [0, 11]
    character_literal [0, 0] - [0, 10]
    ; [0, 10] - [0, 11]
"\uuu0041";
program [0, 0] - [1, 0]
  ERROR [0, 0] - [0, 3]
    " [0, 0] - [0, 1]
  expression_statement [0, 3] - [0, 11]
    identifier [0, 3] - [0, 9]
    ERROR [0, 9] - [0, 10]
      " [0, 9] - [0, 10]
    ; [0, 10] - [0, 11]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions