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

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

Issue 11090016: Change core lib, dart2js, and more for new optional parameters syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
Index: pkg/dartdoc/lib/src/markdown/inline_parser.dart
===================================================================
--- pkg/dartdoc/lib/src/markdown/inline_parser.dart (revision 13588)
+++ pkg/dartdoc/lib/src/markdown/inline_parser.dart (working copy)
@@ -174,7 +174,7 @@
/// Matches stuff that should just be passed through as straight text.
class TextSyntax extends InlineSyntax {
String substitute;
- TextSyntax(String pattern, [String sub])
+ TextSyntax(String pattern, {String sub})
: super(pattern),
substitute = sub;
@@ -214,7 +214,7 @@
final RegExp endPattern;
final String tag;
- TagSyntax(String pattern, [String tag, String end = null])
+ TagSyntax(String pattern, {String tag, String end})
: super(pattern),
endPattern = new RegExp((end != null) ? end : pattern, multiLine: true),
tag = tag;

Powered by Google App Engine
This is Rietveld 408576698