Chromium Code Reviews| Index: lib/compiler/implementation/scanner/scanner.dart |
| diff --git a/lib/compiler/implementation/scanner/scanner.dart b/lib/compiler/implementation/scanner/scanner.dart |
| index 84af8ad0ab1f9ca936711c4a9a960fd85aa11810..4c9892bff96fe6337fd71793211d0134538e8e97 100644 |
| --- a/lib/compiler/implementation/scanner/scanner.dart |
| +++ b/lib/compiler/implementation/scanner/scanner.dart |
| @@ -653,6 +653,11 @@ class AbstractScanner<T extends SourceString> implements Scanner { |
| (next === $$ && allowDollar)) { |
| next = advance(); |
| } else if (next < 128) { |
| + // Identifier ends here. |
| + if (start == byteOffset) { |
| + throw new MalformedInputException("expected identifier not fonud", |
|
kasperl
2012/09/04 14:34:37
fonud -> found
|
| + charOffset); |
| + } |
| if (isAscii) { |
| appendByteStringToken(IDENTIFIER_INFO, asciiString(start, 0)); |
| } else { |