Chromium Code Reviews| 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)); |
| } |