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

Unified Diff: frog/leg/scanner/token.dart

Issue 9190038: Handle escapes in string literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed validation from scanner Created 8 years, 11 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
« no previous file with comments | « frog/leg/scanner/scannerlib.dart ('k') | frog/leg/scanner/vm_scanner_bench.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/scanner/token.dart
diff --git a/frog/leg/scanner/token.dart b/frog/leg/scanner/token.dart
index 596406494710bd18e9a02157b9437f6ab829b1b1..e40fe1ea7ad51438dc9f97e173de406fa6ee8490 100644
--- a/frog/leg/scanner/token.dart
+++ b/frog/leg/scanner/token.dart
@@ -400,3 +400,7 @@ final PrecedenceInfo STRING_INTERPOLATION_INFO =
final PrecedenceInfo HEXADECIMAL_INFO =
const PrecedenceInfo(const SourceString('hexadecimal'), 0, HEXADECIMAL_TOKEN);
+
+// For reporting lexical errors.
+final PrecedenceInfo ERROR_INFO =
+ const PrecedenceInfo(const SourceString('?'), 0, UNKNOWN_TOKEN);
« no previous file with comments | « frog/leg/scanner/scannerlib.dart ('k') | frog/leg/scanner/vm_scanner_bench.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698