Skip to content

[Printer] Unconditionally print a regex block for concatenations #508

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

Merged
merged 1 commit into from
Jun 21, 2022

Conversation

Azoy
Copy link
Contributor

@Azoy Azoy commented Jun 21, 2022

We weren't printing regex blocks around concatenations which caused issues like /a|\dc/ to be printed as if it were /a|\d|c/, which is obviously not the same regex. Just unconditionally print regex blocks around all concatenations.

@Azoy Azoy requested a review from DaveEwing June 21, 2022 17:02
@Azoy
Copy link
Contributor Author

Azoy commented Jun 21, 2022

@swift-ci please test

@Azoy Azoy force-pushed the fix-concat-printing branch from 14234ec to 16a25f2 Compare June 21, 2022 18:28
@Azoy
Copy link
Contributor Author

Azoy commented Jun 21, 2022

@swift-ci please test

@Azoy Azoy merged commit 61e979c into swiftlang:main Jun 21, 2022
@Azoy Azoy deleted the fix-concat-printing branch June 21, 2022 19:58
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.

2 participants