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

Modify RegExp Modifiers static semantics #3439

Closed

Conversation

rbuckton
Copy link
Contributor

@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 rbuckton closed this Oct 4, 2024
@rbuckton
Copy link
Contributor Author

rbuckton commented Oct 4, 2024

Closing as this was meant to be a PR against #3221. Closing in favor of rbuckton#12

@rbuckton rbuckton deleted the regexp-modifiers-static-semantics branch October 8, 2024 03:12
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

Successfully merging this pull request may close these issues.

1 participant