Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[src/core/Match.pm] changed <> to q[] in .gist
Suggested by pmichaud++. It may or may not be worth it to also
escape all ']' in the matched text itself.
  • Loading branch information
Carl Masak committed May 23, 2012
1 parent 3aba24b commit 5e7559a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Match.pm
Expand Up @@ -62,7 +62,7 @@ my class Match is Capture is Cool {
multi method gist (Match:D: $d = 0) {
return "#<failed match>" unless self;
my $s = ' ' x ($d + 1);
my $r = "=> <{self}>\n";
my $r = "=> q[{self}]\n";
for @.caps {
$r ~= $s ~ (.key // '?') ~ ' ' ~ .value.gist($d + 1)
}
Expand Down

0 comments on commit 5e7559a

Please sign in to comment.