summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2018-08-19 13:55:30 +0100
committerDavid Mitchell <davem@iabyn.com>2018-08-26 20:57:34 +0100
commit0b9dad94ed37e484db3e29d315fc26305c88f250 (patch)
treea48a5a82813b42d1688de0c2956cffa59e99c277 /regexp.h
parentbefca383a461d1ce6deea75d7e0c73084408db3d (diff)
downloadperl-0b9dad94ed37e484db3e29d315fc26305c88f250.tar.gz
Improve docs for lastparen, lastcloseparen
There's lots of confusion here, especially about lastparen - some of the docs are just plain wrong.
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/regexp.h b/regexp.h
index 44409f0d9c..aa31846cbb 100644
--- a/regexp.h
+++ b/regexp.h
@@ -134,8 +134,8 @@ typedef struct regexp {
* Data about the last/current match. These are modified during matching
*/
- U32 lastparen; /* last open paren matched */
- U32 lastcloseparen; /* last close paren matched */
+ U32 lastparen; /* highest close paren matched ($+) */
+ U32 lastcloseparen; /* last close paren matched ($^N) */
regexp_paren_pair *offs; /* Array of offsets for (@-) and (@+) */
char **recurse_locinput; /* used to detect infinite recursion, XXX: move to internal */