Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string - verifiation rules? pair-rule ? #357

Open
boaks opened this issue Aug 16, 2019 · 1 comment
Open

string - verifiation rules? pair-rule ? #357

boaks opened this issue Aug 16, 2019 · 1 comment
Labels
Bug Something isn't working Prio.Low

Comments

@boaks
Copy link

boaks commented Aug 16, 2019

The examples include two types of string definitions:

let text = "text";
let text = `text`;

and nested scenarios:

let text = `"text"`;

But it seems to be not possible, to use a " without a closing pair

let text = `"text`;
let text = `\"text`;

It seems, that there is a rule, the it must be always pairs.
Is there a way to escape that assumed "pair-rule" ?
Using "\" seems not to work.

@wegendt-bosch wegendt-bosch added Bug Something isn't working Prio.Low labels Sep 5, 2019
@wegendt-bosch
Copy link
Contributor

This is a limitation of the parser framework we are using and the way we are parsing string interpolations. We have not found a way to do this directly like you are doing, but what you can do is write

let text = `${'"'}text`;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Prio.Low
Projects
None yet
Development

No branches or pull requests

2 participants