Skip to content

Conversation

@rintaro
Copy link
Member

@rintaro rintaro commented Dec 9, 2025

Fixes: #85922

Lexer should always set Token.CommentLength correctly because it's necessary for restoring the token position with comments. Otherwise, Token::isAtStartOfLine() might not correctly set. (see: Lexer::getStateForBeginningOfToken())

Lexer should always set `Token.CommentLength` correctly because it
necessary for restoring to the token position with comments.
Otherwise, 'Token::isAtStartOfLine()' might not correctly set.
@rintaro
Copy link
Member Author

rintaro commented Dec 9, 2025

@swift-ci Please smoke test

@rintaro
Copy link
Member Author

rintaro commented Dec 9, 2025

@swift-ci Please smoke test macOS

@rintaro
Copy link
Member Author

rintaro commented Dec 9, 2025

@swift-ci Please smoke test Linux

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.

Parse error when comment appears between variable declaration and #if

2 participants