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

[SR-12828] Compiler refuses to accept #"""# as an extended string #55274

Open
swift-ci opened this issue May 17, 2020 · 3 comments
Open

[SR-12828] Compiler refuses to accept #"""# as an extended string #55274

swift-ci opened this issue May 17, 2020 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-12828
Radar rdar://problem/63547378
Original Reporter dhoerl (JIRA User)
Type Bug
Environment

Xcode 11.4.1

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug
Assignee None
Priority Medium

md5: 05da2a5fba37be86129dfb223832781d

Issue Description:

I just read up on "Swift String Extended Delimiters" - I want to use #" and "# to enclose a String constant.

What I need is a single quote, so thought I'd use #"""# - but Xcode complains and says its an unterminated string.

The specification as written should allow my example above (IMHO).

@CodaFi
Copy link
Member

CodaFi commented May 22, 2020

@swift-ci create

@CodaFi
Copy link
Member

CodaFi commented May 22, 2020

This is an unfortunate oversight in the parser. Your interpretation is correct, and thankfully we can fix this without worrying about a source break because of the hard error.

@swift-ci
Copy link
Collaborator Author

Comment by David Hoerl (JIRA)

@CodaFi Thank you!

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

2 participants