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

Rephrase error messages on backrererences. #58310

Merged
merged 5 commits into from
Apr 25, 2024

Conversation

DanielRosenwasser
Copy link
Member

Rephrases "decimal capturing group" as just a "backreference".

I would actually call out the backreference number, but the scanner's ErrorCallback only accepts one parameter, so that can be fixed up in the future.

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but will probably race with the other regex PRs since that touches diags?

Copy link
Member

@gabritto gabritto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the new error message is more clear.

@DanielRosenwasser DanielRosenwasser merged commit ed87791 into main Apr 25, 2024
25 checks passed
@DanielRosenwasser DanielRosenwasser deleted the rephraseBackreferenceMessage branch April 25, 2024 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants