| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library classify; | 5 #library('classify'); |
| 6 | 6 |
| 7 import '../../../lib/compiler/implementation/scanner/scannerlib.dart'; | 7 #import('../../../lib/compiler/implementation/scanner/scannerlib.dart'); |
| 8 // TODO(rnystrom): Use "package:" URL (#4968). | 8 // TODO(rnystrom): Use "package:" URL (#4968). |
| 9 import 'markdown.dart' as md; | 9 #import('markdown.dart', prefix: 'md'); |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * Kinds of tokens that we care to highlight differently. The values of the | 12 * Kinds of tokens that we care to highlight differently. The values of the |
| 13 * fields here will be used as CSS class names for the generated spans. | 13 * fields here will be used as CSS class names for the generated spans. |
| 14 */ | 14 */ |
| 15 class Classification { | 15 class Classification { |
| 16 static const NONE = null; | 16 static const NONE = null; |
| 17 static const ERROR = "e"; | 17 static const ERROR = "e"; |
| 18 static const COMMENT = "c"; | 18 static const COMMENT = "c"; |
| 19 static const IDENTIFIER = "i"; | 19 static const IDENTIFIER = "i"; |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 } | 194 } |
| 195 return Classification.KEYWORD; | 195 return Classification.KEYWORD; |
| 196 | 196 |
| 197 case EOF_TOKEN: | 197 case EOF_TOKEN: |
| 198 return Classification.NONE; | 198 return Classification.NONE; |
| 199 | 199 |
| 200 default: | 200 default: |
| 201 return Classification.NONE; | 201 return Classification.NONE; |
| 202 } | 202 } |
| 203 } | 203 } |
| OLD | NEW |