| 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 /// Maintains the internal state needed to parse inline span elements in | 5 /// Maintains the internal state needed to parse inline span elements in |
| 6 /// markdown. | 6 /// markdown. |
| 7 class InlineParser { | 7 class InlineParser { |
| 8 static List<InlineSyntax> get syntaxes { | 8 static List<InlineSyntax> get syntaxes { |
| 9 // Lazy initialize. | 9 // Lazy initialize. |
| 10 if (_syntaxes == null) { | 10 if (_syntaxes == null) { |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 parser.consume(endMatch[0].length); | 389 parser.consume(endMatch[0].length); |
| 390 } else { | 390 } else { |
| 391 // Didn't close correctly so revert to text. | 391 // Didn't close correctly so revert to text. |
| 392 parser.start = startPos; | 392 parser.start = startPos; |
| 393 parser.advanceBy(endMatch[0].length); | 393 parser.advanceBy(endMatch[0].length); |
| 394 } | 394 } |
| 395 | 395 |
| 396 return null; | 396 return null; |
| 397 } | 397 } |
| 398 } | 398 } |
| OLD | NEW |