-
Notifications
You must be signed in to change notification settings - Fork 20
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 modifiers proposal #127
Conversation
parser.js
Outdated
skip(":"); | ||
modifiersGroup.body = parseDisjunction(); | ||
if (!modifiersGroup.body) { | ||
bail('Expected disjunction'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test case for this branch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't find such an example.😰
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does /(?i:)/
or /(?i:|)/
throw?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no
Thanks for all the work on this one. I plan to take a look over the weekend. |
Can you also update Line 3 in e66d3d0
|
There’s some tests for types too :) |
This looks overall good to me. Let's figure out the latest discussion about "We should parse [...]" and then this should be good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After re-reviewing, I now think that the PR is fine as-is. If there are no modifiers, we don't need to add an empty object to the current (?:...)
AST.
Thank you all for working on this one. I've created a new npm release 0.9.0 of the library including this change. |
ref: https://github.com/tc39/proposal-regexp-modifiers