Skip to content

monarch generator does not handle case insensitivity and does not escape "\" #2055

@dhrubomoy

Description

@dhrubomoy

Langium version: 4.0.0
Package name: langium-cli

Steps To Reproduce

  1. Make sure the grammar has "\"
  2. In language config add "monarch" prop so that it generates monarch rules
"monarch": {
    "out": "syntaxes/mylang.monarch.ts"
}
  1. Add "caseInsensitive": true
  2. Run npm run langium:generate.

Link to code example: N/A

The current behavior

In the generated .ts file it does not include ignoreCase: true and does not escape '\'

The expected behavior

Should include ignoreCase: true and escape '\\'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions