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">
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
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> [ '=