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

RFC: Support tagged template parsing #2

Closed
kitten opened this issue May 20, 2020 · 1 comment
Closed

RFC: Support tagged template parsing #2

kitten opened this issue May 20, 2020 · 1 comment

Comments

@kitten
Copy link
Member

kitten commented May 20, 2020

Currently parse(node)(input) works using a string, i.e. input is expected to be a string.
It would be interesting to allow parse(node)(quasis, ...expressions) to be passed, where quasis is an array of strings and expressions is an array of interpolations.

This way it'd be possible to parse a tagged template literal input by introducing just one new matcher: match.interpolation('interpolation').

@kitten
Copy link
Member Author

kitten commented Jan 9, 2021

Resolved by 43d3bf3

@kitten kitten closed this as completed Jan 9, 2021
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