Skip to content

Backslash in {js||js} throws exception #4644

Closed
@IwanKaramazow

Description

@IwanKaramazow
let x = {js|\ |js}
(* rescript *)
let x = `\ `

The example throws invalid escape code. Should we follow the exact same behaviour as JS?
image

Related: https://forum.rescript-lang.org/t/syntax-to-break-long-single-line-strings/

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