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

Unified Diff: pkg/dartdoc/lib/dartdoc.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 | « no previous file | pkg/dartdoc/lib/markdown.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/lib/dartdoc.dart
===================================================================
--- pkg/dartdoc/lib/dartdoc.dart (revision 12745)
+++ pkg/dartdoc/lib/dartdoc.dart (working copy)
@@ -236,7 +236,7 @@
// Patch in support for [:...:]-style code to the markdown parser.
// TODO(rnystrom): Markdown already has syntax for this. Phase this out?
md.InlineParser.syntaxes.insertRange(0, 1,
- new md.CodeSyntax(@'\[\:((?:.|\n)*?)\:\]'));
+ new md.CodeSyntax(r'\[\:((?:.|\n)*?)\:\]'));
md.setImplicitLinkResolver((name) => resolveNameReference(name,
currentLibrary: _currentLibrary, currentType: _currentType,
@@ -539,7 +539,7 @@
}
}
String jsonString = JSON.stringify(createNavigationInfo());
- String dartString = jsonString.replaceAll(@"$", @"\$");
+ String dartString = jsonString.replaceAll(r"$", r"\$");
final filePath = tmpPath.append('nav.dart');
writeString(new File.fromPath(filePath),
'get json => $dartString;');
@@ -1229,7 +1229,7 @@
// TODO(rnystrom): Why don't we have a nice type in the platform for this?
// TODO(rnystrom): This is a bit hackish. We consider any URL that lacks
// a scheme to be relative.
- return const RegExp(@'^\w+:').hasMatch(url);
+ return const RegExp(r'^\w+:').hasMatch(url);
}
/** Gets the URL to the documentation for [library]. */
@@ -1480,7 +1480,7 @@
// See if it's a constructor
final constructorLink = (() {
final match =
- new RegExp(@'new ([\w$]+)(?:\.([\w$]+))?').firstMatch(name);
+ new RegExp(r'new ([\w$]+)(?:\.([\w$]+))?').firstMatch(name);
if (match == null) return;
InterfaceMirror foundtype = findMirror(currentLibrary.types, match[1]);
if (foundtype == null) return;
@@ -1494,7 +1494,7 @@
// See if it's a member of another type
final foreignMemberLink = (() {
- final match = new RegExp(@'([\w$]+)\.([\w$]+)').firstMatch(name);
+ final match = new RegExp(r'([\w$]+)\.([\w$]+)').firstMatch(name);
if (match == null) return;
InterfaceMirror foundtype = findMirror(currentLibrary.types, match[1]);
if (foundtype == null) return;
« no previous file with comments | « no previous file | pkg/dartdoc/lib/markdown.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698