summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki.pm16
1 files changed, 8 insertions, 8 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 10a316e03..70fc6ff73 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -1011,29 +1011,29 @@ sub pagespec_match ($$;@) { #{{{
package IkiWiki::FailReason;
-use overload (
+use overload ( #{{{
'""' => sub { ${$_[0]} },
'0+' => sub { 0 },
'!' => sub { bless $_[0], 'IkiWiki::SuccessReason'},
fallback => 1,
-);
+); #}}}
-sub new {
+sub new { #{{{
bless \$_[1], $_[0];
-}
+} #}}}
package IkiWiki::SuccessReason;
-use overload (
+use overload ( #{{{
'""' => sub { ${$_[0]} },
'0+' => sub { 1 },
'!' => sub { bless $_[0], 'IkiWiki::FailReason'},
fallback => 1,
-);
+); #}}}
-sub new {
+sub new { #{{{
bless \$_[1], $_[0];
-}
+}; #}}}
package IkiWiki::PageSpec;