mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-02 17:52:58 +01:00
Fix handling of closing scopes in FindNextof (#977)
This commit is contained in:
@@ -347,6 +347,8 @@ auto ParseTree::Parser::FindNextOf(
|
||||
} else if (kind.IsOpeningSymbol()) {
|
||||
new_position =
|
||||
TokenizedBuffer::TokenIterator(tokens_.GetMatchedClosingToken(token));
|
||||
// Advance past the closing token.
|
||||
++new_position;
|
||||
} else {
|
||||
++new_position;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user