This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix perl #126186 make all verbs allow an optional arg
authorYves Orton <demerphq@gmail.com>
Sun, 4 Oct 2015 22:03:10 +0000 (00:03 +0200)
committerYves Orton <demerphq@gmail.com>
Mon, 5 Oct 2015 19:10:49 +0000 (21:10 +0200)
commitfee505829585692618c3f9bb28a8f0464553ec94
treee5c72eddb476af248072d178ddfeeecc0bc4f406
parenta2b6fd41891602e43754644a7ef0fcbc54d9e656
fix perl #126186 make all verbs allow an optional arg

In perl #126186 it was pointed out we had started allowing name
arguments for verbs where we did not document them to be supported,
albeit in an inconsistent way. The previous patch cleaned up some
of the cause of this, but it seems better to just generally allow
the existing verbs to all support a mark name argument.

So this patch reverses the effect of the previous patch, and makes
all verbs, FAIL, ACCEPT, etc, allow an optional argument, and
set REGERROR/REGMARK appropriately as well.
pod/perldebguts.pod
pod/perlre.pod
regcomp.c
regcomp.sym
regexec.c
regnodes.h
t/re/pat_advanced.t
t/re/re_tests