Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Side by Side Diff: utils/dartdoc/inline_parser.dart

Issue 8953042: Move markdown library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add markdown tests to dartdoc. Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/dartdoc/html_renderer.dart ('k') | utils/dartdoc/markdown.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 parser.consume(endMatch[0].length); 386 parser.consume(endMatch[0].length);
387 } else { 387 } else {
388 // Didn't close correctly so revert to text. 388 // Didn't close correctly so revert to text.
389 parser.start = startPos; 389 parser.start = startPos;
390 parser.advanceBy(endMatch[0].length); 390 parser.advanceBy(endMatch[0].length);
391 } 391 }
392 392
393 return null; 393 return null;
394 } 394 }
395 } 395 }
OLDNEW
« no previous file with comments | « utils/dartdoc/html_renderer.dart ('k') | utils/dartdoc/markdown.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698