Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: runtime/vm/parser.cc

Issue 1504313003: Fix mismatched parenthesis error message (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add fixes from previous CL review feedback Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 40bc39ed53be57eda6367f55a1991cca8590682f..8fb402763a18c8065f665e7718c16ce7b785376a 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -1696,6 +1696,8 @@ void Parser::SkipToMatching() {
is_match = opening_token == Token::kLBRACK;
break;
case Token::kEOS:
+ opening_token = token_stack.RemoveLast();
+ opening_pos = token_pos_stack.RemoveLast();
unexpected_token_found = true;
break;
default:
« no previous file with comments | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698