Skip to content

[Lexer] Fix assertion failure for unterminated string literal #19457

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

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Sep 21, 2018

in string interpolation in multiline string literal. e.g.

    """
    \("<-this is unterminated.
    """

In this case, the outer multiline literal should form tok::unknown along with an error message.
(In Swift4.2, this used to be silently accepted)

Reported in #19356 (comment) by @johnno1962 Thanks!

in string interpolation in multiline string literal.

    """
    \("<-this is unterminated.
    """

In this case, the outer multiline literal should form 'tok::unknown'
along with a error message.
@rintaro
Copy link
Member Author

rintaro commented Sep 21, 2018

@swift-ci Please smoke test

@rintaro rintaro merged commit b88de9e into swiftlang:master Sep 21, 2018
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.

1 participant