Skip to content

Prefer the first lexical error in a string literal segment #1480

Closed
@hamishknight

Description

@hamishknight

Description

In lexInStringLiteral we currently overwrite the current lexer error when evaluating the result of lexCharacterInStringLiteral, we ought to only overwrite if the error isn't already present such that we prefer the first lexical error.

Steps to Reproduce

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions