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

Strings: fix escape sequences for translations (swift 5) #998

Merged
merged 3 commits into from Aug 12, 2022

Conversation

djbe
Copy link
Member

@djbe djbe commented Aug 10, 2022

Further fix for #986.

Problem with swift raw strings, is that every escape sequence needs to be expanded with the raw delimiter. So in a #"…"# raw string, \n must become \#n.

With our delimiters already set to ###, and an unknown number of escape sequences, we're better of removing raw strings and using normal ones again 🤷.

@djbe djbe added this to the 6.6.2 milestone Aug 10, 2022
@djbe djbe linked an issue Aug 10, 2022 that may be closed by this pull request
@SwiftGen-Eve
Copy link

SwiftGen-Eve commented Aug 10, 2022

1 Warning
⚠️ Big PR

Hey 👋 I'm Eve, the friendly bot watching over SwiftGen 🤖

Thanks a lot for your contribution!


Seems like everything is in order 👍 You did a good job here! 🤝

Generated by 🚫 Danger

@djbe
Copy link
Member Author

djbe commented Aug 10, 2022

@teejayhh @narlei mind giving this a try? To make sure it works for whatever extra cases you guys have.

@narlei
Copy link

narlei commented Aug 11, 2022

@teejayhh @narlei mind giving this a try? To make sure it works for whatever extra cases you guys have.

It worked perfectly now!

@djbe djbe force-pushed the feature/fix-string-escape branch from 96f2412 to c98f26e Compare August 11, 2022 23:50
@djbe djbe merged commit 156b6e1 into develop Aug 12, 2022
@djbe djbe deleted the feature/fix-string-escape branch August 12, 2022 00:01
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.

Build fails when using #" char sequence within the string value.
3 participants