eclipse-langium/langium

Single quotes in property types are not correctly escaped

msujew opened this issue · 0 comments

Langium version: 3.0
Package name: langium-cli

Steps To Reproduce

  1. Use a rule like A: value="'test'";
  2. The generated ast.ts does not compile

The current behavior

It generates the string type as ''test''.

The expected behavior

It's supposed to generate the type as '\'test\''.