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

TemplateLiteral vs. Literal #121

Open
adros opened this issue Sep 8, 2017 · 0 comments
Open

TemplateLiteral vs. Literal #121

adros opened this issue Sep 8, 2017 · 0 comments

Comments

@adros
Copy link
Contributor

adros commented Sep 8, 2017

Aren't template literals also literals?

They are mentioned in chapter 'Literals' in JS grammar, so I suppose they are.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types#Literals

So if they are, your matching seems to be buggy, because template literals are not match with query literal.

$ echo 'var y=`y`' | grasp literal

$ echo 'var y=`y`' | grasp TemplateLiteral
1:var y=`y`

(or should this issue be addressed to underlying ACORN parser?)

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

No branches or pull requests

1 participant