Subject: | Support for =defn |
If you install App::Grok using cpan and try "grok s26", you get errors about the =defn block type
being unknown and no output. The attached patch fixes this, even if I'm not confident it's the
best way.
This is on Apple's Lion (i.e. 10.7) distribution of Perl 5.12. Perl6::Perldoc 0.000007 and grok
0.26.
Subject: | patch-Parser.pm.diff |
--- Parser.pm~ 2012-05-07 23:34:37.000000000 +0100
+++ Parser.pm 2012-05-17 22:03:43.000000000 +0100
@@ -1715,6 +1715,10 @@
package Perl6::Perldoc::Block::item;
use base 'Perl6::Perldoc::Block';
+# Standard =defn block...
+package Perl6::Perldoc::Block::defn;
+ use base 'Perl6::Perldoc::Block';
+
# Implicit =list block...
package Perl6::Perldoc::Block::list;
use base 'Perl6::Perldoc::Block';