| 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 #import('markdown.dart', prefix: 'md'); | 9 #import('markdown.dart', prefix: 'md'); |
| 9 | 10 |
| 10 /** | 11 /** |
| 11 * 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 |
| 12 * 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. |
| 13 */ | 14 */ |
| 14 class Classification { | 15 class Classification { |
| 15 static const NONE = null; | 16 static const NONE = null; |
| 16 static const ERROR = "e"; | 17 static const ERROR = "e"; |
| 17 static const COMMENT = "c"; | 18 static const COMMENT = "c"; |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 } | 196 } |
| 196 return Classification.KEYWORD; | 197 return Classification.KEYWORD; |
| 197 | 198 |
| 198 case EOF_TOKEN: | 199 case EOF_TOKEN: |
| 199 return Classification.NONE; | 200 return Classification.NONE; |
| 200 | 201 |
| 201 default: | 202 default: |
| 202 return Classification.NONE; | 203 return Classification.NONE; |
| 203 } | 204 } |
| 204 } | 205 } |
| OLD | NEW |