Skip to content

Fix handling of raw multiline string newline-suppressing continuations. #1041

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 26, 2025

Conversation

allevato
Copy link
Member

We were unconditionally appending just \ instead of respecting however many # delimiters also need to be present after it in the case of raw string literals.

Unfortunately, the broken code still compiles, just with a different meaning to the string contents. I found this one out the hard way ☹️

@allevato allevato enabled auto-merge (squash) June 26, 2025 19:00
@allevato allevato merged commit cbe4886 into swiftlang:main Jun 26, 2025
22 checks passed
@allevato allevato deleted the multiline-string-continuations branch June 26, 2025 20:04
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