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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/scanner/partial_parser.dart

Issue 324293002: Improve parser error recovery. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r37359. Created 6 years, 6 months 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
Index: dart/sdk/lib/_internal/compiler/implementation/scanner/partial_parser.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/scanner/partial_parser.dart b/dart/sdk/lib/_internal/compiler/implementation/scanner/partial_parser.dart
index 845fc79f818b04700a35b94407f4643609c4673c..98fc1ab3bf7344b2aece1bf2f08e7c0692f959b5 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/scanner/partial_parser.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/scanner/partial_parser.dart
@@ -32,6 +32,8 @@ class PartialParser extends Parser {
if ((identical(kind, EOF_TOKEN)) ||
(identical(value, ';')) ||
(identical(value, ',')) ||
+ (identical(value, '}')) ||
+ (identical(value, ')')) ||
(identical(value, ']'))) {
break;
}

Powered by Google App Engine
This is Rietveld 408576698