Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change early error for modifiers #12

Closed
wants to merge 1 commit into from

Conversation

rbuckton
Copy link
Owner

@rbuckton rbuckton commented Oct 4, 2024

Atom :: `(?` RegularExpressionModifiers `-` RegularExpressionModifiers `:` Disjunction `)`

Currently we issue an error if both the first and second modifier sets are empty (e.g., (?-:)), but does not error when only the second modifier set is empty (e.g., (?im-:)). As suggested by @JLHwung, this changes the rule to only error when the second modifier set is missing, which would cover both of these cases.

@rbuckton
Copy link
Owner Author

rbuckton commented Oct 8, 2024

Withdrawn following discussion at the October 2024 TC39 plenary

@rbuckton rbuckton closed this Oct 8, 2024
@rbuckton rbuckton deleted the regexp-modifiers-static-semantics branch October 8, 2024 03:12
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant