-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: support for modifier #83
Conversation
8d7adec
to
9a4e1ac
Compare
9a4e1ac
to
d343563
Compare
A bit of feedback from my first impression of the AST (I haven't looked at the parser implementation yet):
|
Thank you for your comment!
Regexps without modifiers will be
I thought that nodes with no width should be avoided, but after re-checking it, it seems that nodes with no width already exist the nodes generated by |
I see, makes sense.
Ah, my bad. I only looked at the grammar itself and not its early errors. |
Thank you for reviewing this PR. |
🎉 This PR is included in version 4.12.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I was working on an experimental implementation of the RegExp Modifiers. I'm not sure yet if this implementation can be merged as-is, but I'm opening a PR to share my AST ideas as well.
https://github.com/tc39/proposal-regexp-modifiers