| 1 | package Pugs::Grammar::Pod; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | use base qw(Pugs::Grammar::BaseCategory); | ||
| 5 | |||
| 6 | # XXX - this module is currently unused | ||
| 7 | # XXX - see Pugs::Grammar::BaseCategory ws() | ||
| 8 | |||
| 9 | # placeholder for the Pod grammar | ||
| 10 | |||
| 11 | # XXX Pod can only start at a line start | ||
| 12 | |||
| 13 | BEGIN { | ||
| 14 | __PACKAGE__->add_rule( | ||
| 15 | "=begin" => q( | ||
| 16 | #{ print "pod - $_[0]\n" } | ||
| 17 | .* \n \= end .*? \n | ||
| 18 | |||
| 19 | { | ||
| 20 | return { pod_block => $() ,} | ||
| 21 | } | ||
| 22 | ) ); | ||
| 23 | __PACKAGE__->recompile; | ||
| 24 | } | ||
| 25 | |||
| 26 | |||
| 27 | 1; |