mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 19:58:11 +00:00
Fix handling of closing scopes in FindNextof (#977)
This commit is contained in:
1 parent
a562f872e7
commit
97ce1f5449
6 files changed
+20
-2
No files matched your search
@@ -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