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

Unified Diff: frog/tokenizer.g.dart

Issue 8585044: Fixes issues in string interpolation tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove debugging code Created 9 years, 1 month 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: frog/tokenizer.g.dart
diff --git a/frog/tokenizer.g.dart b/frog/tokenizer.g.dart
index 994632771eda2ae55b1c52cdf8de78f566a7fb0d..33881d55b3717e8307920114dcf1ad06f794673e 100644
--- a/frog/tokenizer.g.dart
+++ b/frog/tokenizer.g.dart
@@ -54,7 +54,7 @@ class Tokenizer extends TokenizerBase {
} else if (_maybeEatChar(39/*'*/)) {
return finishString(39/*'*/);
} else {
- return finishIdentifier();
+ return finishIdentifier(36/*$*/);
}
case 37/*%*/:
if (_maybeEatChar(61/*=*/)) {
@@ -226,7 +226,7 @@ class Tokenizer extends TokenizerBase {
}
default:
if (isIdentifierStart(ch)) {
- return this.finishIdentifier();
+ return this.finishIdentifier(ch);
} else if (isDigit(ch)) {
return this.finishNumber();
} else {
@@ -390,6 +390,10 @@ class TokenizerHelpers {
}
static bool isIdentifierPart(int c) {
+ return (isIdentifierStart(c) || isDigit(c) || c == 36/*$*/);
+ }
+
+ static bool isInterpIdentifierPart(int c) {
jimhug 2011/11/18 17:05:29 FYI - I really hate this -but I can't fault you fo
return (isIdentifierStart(c) || isDigit(c));
}

Powered by Google App Engine
This is Rietveld 408576698