| Index: dart/site/try/src/editor.dart
|
| diff --git a/dart/site/try/src/editor.dart b/dart/site/try/src/editor.dart
|
| index bc80134611903092a7420be2a7a3dcf9901869fd..d330a7b7446577641d0b633b3c5b743114753837 100644
|
| --- a/dart/site/try/src/editor.dart
|
| +++ b/dart/site/try/src/editor.dart
|
| @@ -6,9 +6,9 @@ library trydart.editor;
|
|
|
| import 'dart:html';
|
|
|
| -import 'package:compiler/implementation/scanner/scannerlib.dart'
|
| - show
|
| +import 'package:compiler/implementation/scanner/scannerlib.dart' show
|
| EOF_TOKEN,
|
| + ErrorToken,
|
| StringScanner,
|
| Token;
|
|
|
| @@ -200,6 +200,10 @@ void inlineChildren(Element element) {
|
| }
|
|
|
| Decoration getDecoration(Token token) {
|
| + if (token is ErrorToken) {
|
| + isMalformedInput = true;
|
| + return new DiagnosticDecoration('error', token.assertionMessage);
|
| + }
|
| String tokenValue = token.value;
|
| String tokenInfo = token.info.value;
|
| if (tokenInfo == 'string') return currentTheme.string;
|
|
|