summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-03-07 18:50:04 +0100
committerYves Orton <demerphq@gmail.com>2023-03-13 21:26:08 +0800
commit05b13cf680588a26de64f13d2b3be385e17624bc (patch)
treecbd61b1c8e26fd2cc7122023fc05a987dbf5ba40 /pod
parentbed264fb59f3f5945dea7f8a1670254c0d59f58c (diff)
downloadperl-05b13cf680588a26de64f13d2b3be385e17624bc.tar.gz
regcomp.c - track parens related to CURLYX and CURLYM
This was originally a patch which made somewhat drastic changes to how we represent capture buffers, which Dave M and I and are still discussing offline and which has a larger impact than is acceptable to address at the current time. As such I have reverted the controversial parts of this patch for now, while keeping most of it intact even if in some cases the changes are unused except for debugging purposes. This patch still contains valuable changes, for instance teaching CURLYX and CURLYM about how many parens there are before the curly[1] (which will be useful in follow up patches even if stricly speaking they are not directly used yet), tests and other cleanups. Also this patch is sufficiently large that reverting it out would have a large effect on the patches that were made on top of it. Thus keeping most of this patch while eliminating the controversial parts of it for now seemed the best approach, especially as some of the changes it introduces and the follow up patches based on it are very useful in cleaning up the structures we use to represent regops. [1] Curly is the regexp internals term for quantifiers, named after x{min,max} "curly brace" quantifiers.
Diffstat (limited to 'pod')
-rw-r--r--pod/perldebguts.pod8
1 files changed, 4 insertions, 4 deletions
diff --git a/pod/perldebguts.pod b/pod/perldebguts.pod
index 19d2a7d562..42db53944f 100644
--- a/pod/perldebguts.pod
+++ b/pod/perldebguts.pod
@@ -752,13 +752,13 @@ will be lost.
PLUS node Match this (simple) thing 1 or more times:
/A{1,}B/ where A is width 1 char
- CURLY sv 2 Match this (simple) thing {n,m} times:
+ CURLY sv 4 Match this (simple) thing {n,m} times:
/A{m,n}B/ where A is width 1 char
- CURLYN no 2 Capture next-after-this simple thing:
+ CURLYN no 4 Capture next-after-this simple thing:
/(A){m,n}B/ where A is width 1 char
- CURLYM no 2 Capture this medium-complex thing {n,m}
+ CURLYM no 4 Capture this medium-complex thing {n,m}
times: /(A){m,n}B/ where A is fixed-length
- CURLYX sv 2 Match/Capture this complex thing {n,m}
+ CURLYX sv 4 Match/Capture this complex thing {n,m}
times.
# This terminator creates a loop structure for CURLYX