On Thu, Jan 17, 2008 at 12:34:23PM -0800, Ævar Arnfjörð Bjarmason via RT wrote:
: Index: src/parser/grammar.pg
: ===================================================================
: --- src/parser/grammar.pg     (revision 24905)
: +++ src/parser/grammar.pg     (working copy)
: @@ -111,8 +111,8 @@
:  token pod_comment {
:      ^^ '=' <.unsp>?
:      [
: -    | begin <.ws> <ident> .*? \n
: -      '=' <.unsp>? 'end' <.ws> $<ident> \N*         {*}         #= block
: +    | begin <.ws> [ <ident> ]? .*? \n
: +      '=' <.unsp>? 'end' <.ws> [ $<ident> ]? \N*    {*}         #= block
:      | \N*                                           {*}         #= misc
:      ]
:      {*}

That is problematic, since it allows

    =begin foo
    =end

(Well, problematic unless you believe in that sort of thing...)
Of course, both grammar.pg and STD.pm are just filling in for the
missing S26 implementation there, so it's a stopgap in any case.

Larry

Reply via email to