Skip to content

Regex syntax locations are broken #7682

@zth

Description

@zth

Seems the new native regex syntax does not set locations properly, which breaks error reporting. As an example, notice how we don't get proper highlighting for this error:

let f: int = /g/

https://rescript-lang.org/try?version=v12.0.0-beta.2&module=esmodule&code=DYUwLgBAZgXBCWA7SBeCB6A5uoA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions