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-4708] Starter: Add support for multiline strings inside string interpolations #47285

Closed
kubamracek mannequin opened this issue Apr 26, 2017 · 4 comments
Closed

[SR-4708] Starter: Add support for multiline strings inside string interpolations #47285

kubamracek mannequin opened this issue Apr 26, 2017 · 4 comments
Assignees
Labels
compiler The Swift compiler in itself good first issue Good for newcomers improvement parser Area → compiler: The legacy C++ parser

Comments

@kubamracek
Copy link
Mannequin

kubamracek mannequin commented Apr 26, 2017

Previous ID SR-4708
Radar rdar://31825723
Original Reporter @kubamracek
Type Improvement
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Improvement, Parser, StarterBug
Assignee @johnno1962
Priority Medium

md5: fde619265d94552bdb7fc005e0b64d70

Issue Description:

Multi-line string literals are in, but they cannot be used within string interpolations. That would be nice to add.

  _ = "hello\("""
    world
    """)"

or

  _ = """
    hello\("""
       world
       """)
    abc
    """
@kubamracek
Copy link
Mannequin Author

kubamracek mannequin commented Apr 26, 2017

See #8813 (comment)

@milseman
Copy link
Mannequin

milseman mannequin commented Apr 26, 2017

String literal lexing should already be safely recursive, that is we can have normal string literals inside of interpolations. I hope this can be an easy fix.

@tkremenek
Copy link
Member

@swift-ci create

@johnno1962
Copy link
Contributor

PR #9049

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself good first issue Good for newcomers improvement parser Area → compiler: The legacy C++ parser
Projects
None yet
Development

No branches or pull requests

2 participants