-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
(swift) New string grammar #2902
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. Already looking much better than the first pass! :-)
@joshgoebel I've pushed a new version that incorporates your feedback. |
I think this is looking pretty good, feel free to finish it up. |
Ready for a final review! |
Is anything blocking this? I see "Changes requested" but no unresolved conversations. |
@svanimpe Nope. All good! |
This is a rewrite of the grammar for strings in Swift. I’ve implemented the official grammar (https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#grammar_string-literal) and included support for raw strings with up to three hash signs.
I’m submitting this PR as a WIP to get some early feedback, as this is my first contribution. If the grammar looks good, I'll add a suite of unit tests and update the changelog/contributor list.
Fixes #2819 and replaces #2820.