Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Comments ending in backslashes screw with expanded expressions #71

@Alhadis

Description

@Alhadis

Pretty easy to reproduce; just use this grammar:

name: "Test"
scopeName: "text.test"
fileTypes: [""]
patterns: [{
    match: """(?x)
        (A| # Comment\
        B)
    """
}]

Removing the backslash from the end of the comment solves this issue:
Figure 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions