Re: Bug in 1.80 Parser?

[email protected] (Damian Conway)
Newsgroups perl.recdescent
Message-ID <[email protected]>
That was a genuine bug (but in Text::Balanced, not Parse::RecDescent).

I've fixed it now, but the patch is to change appropriate test
in _match_codeblock:

                # NEED TO COVER MANY MORE CASES HERE!!!
                if ($$textref =~ m#\G\s*( [-+*x/%^&|.]=?
                                        | [!=]~
                                        | =(?!>)
                                        | (\*\*|&&|\|\||<<|>>)=?
                                        | split|grep|map|return
                                        )#gcx)
                {
                        $patvalid = 1;
                        next;
                }

Thanks, Ken!

Damian

PS: No, it wasn't a test.

PPS: But you certainly passed ;-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.