Re: [perl #83498] [PATCH] for #82142:

2011-02-08 Thread anteusz
2011.02.07. 11:36 keltezéssel, Moritz Lenz via RT írta: And as an actual patch: --- a/src/Perl6/Grammar.pm +++ b/src/Perl6/Grammar.pm @@ -1477,6 +1477,7 @@ token quote:sym { } <.setup_quotepairs> [ +| '/' \s* '/'<.panic: "Null regex in substitution not allowed">

Re: [perl #83498] [PATCH] for #82142:

2011-02-07 Thread Patrick R. Michaud
On Mon, Feb 07, 2011 at 11:36:22AM +0100, Moritz Lenz wrote: > +| '/' \s* '/' <.panic: "Null regex in substitution not allowed"> > > But I fear this is the wrong approach. Instead of doing a separate > null pattern check in every quoting construct, the check should be > done in the regex parsi

Re: [perl #83498] [PATCH] for #82142:

2011-02-07 Thread Moritz Lenz
And as an actual patch: --- a/src/Perl6/Grammar.pm +++ b/src/Perl6/Grammar.pm @@ -1477,6 +1477,7 @@ token quote:sym { } <.setup_quotepairs> [ +| '/' \s* '/' <.panic: "Null regex in substitution not allowed"> | '/' ':qq'> <.old_rx_mods>? | '[' ']' <.ws> [ '=