Skip to content

Conversation

@cbrewster
Copy link
Member

If a ${} is preceded with '' it is not treated as a string interpolation.

Before:
image

After:
image

If a  is preceded with  it is not treated as a string interpolation.
@cbrewster cbrewster added the boop label Apr 3, 2022
Copy link

@lhchavez lhchavez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh, i was not expecting that escaping syntax.

if (i > 1) input.acceptToken(indStrContent, -1);
else input.acceptToken(indStrEnd, 1);
break;
if (input.peek(1) === dollar) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this package have tests? it would be great to add a test case for this.

Copy link

@milahu milahu Sep 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have tests in my lezer-parser-nix repo, but i changed token names, so the tests are outdated

(also my parser fails on attrpath interpolations like { a.${b}.${c} = 1; } ...)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see #3

@lhchavez lhchavez removed the boop label Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants