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

Unified Diff: pkg/dartdoc/lib/markdown.dart

Issue 10963049: migrate raw string to new syntax in dartdoc (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/dartdoc/lib/dartdoc.dart ('k') | pkg/dartdoc/lib/src/dartdoc/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/lib/markdown.dart
===================================================================
--- pkg/dartdoc/lib/markdown.dart (revision 12745)
+++ pkg/dartdoc/lib/markdown.dart (working copy)
@@ -46,11 +46,11 @@
// [id]: http:foo.com "some title"
// Where there may whitespace in there, and where the title may be in
// single quotes, double quotes, or parentheses.
- final indent = @'^[ ]{0,3}'; // Leading indentation.
- final id = @'\[([^\]]+)\]'; // Reference id in [brackets].
- final quote = @'"[^"]+"'; // Title in "double quotes".
- final apos = @"'[^']+'"; // Title in 'single quotes'.
- final paren = @"\([^)]+\)"; // Title in (parentheses).
+ final indent = r'^[ ]{0,3}'; // Leading indentation.
+ final id = r'\[([^\]]+)\]'; // Reference id in [brackets].
+ final quote = r'"[^"]+"'; // Title in "double quotes".
+ final apos = r"'[^']+'"; // Title in 'single quotes'.
+ final paren = r"\([^)]+\)"; // Title in (parentheses).
final pattern = new RegExp(
'$indent$id:\\s+(\\S+)\\s*($quote|$apos|$paren|)\\s*\$');
« no previous file with comments | « pkg/dartdoc/lib/dartdoc.dart ('k') | pkg/dartdoc/lib/src/dartdoc/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698