Skip to content

[5.0][Lexer] Don't setEscapedIdentifier(true) for tok::eof at ArtificialEOF #14553

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
merged 1 commit into from
Feb 13, 2018

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Feb 12, 2018

Cherry-pick of #14505

https://bugs.swift.org/browse/SR-6926

This happens when the Parser re-lexing comment tokens that sets
ArtificialEOF at the end of comment range.
It used to cause an assertion failure:
(!value || Kind == tok::identifier) && "only identifiers can be escaped identifiers"
@rintaro
Copy link
Member Author

rintaro commented Feb 12, 2018

@swift-ci Please smoke test

@akyrtzi akyrtzi merged commit 8b1673a into swiftlang:swift-5.0-branch Feb 13, 2018
@rintaro rintaro deleted the 5.0-lex-escaped-eof branch February 14, 2018 16:40
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.

2 participants