summaryrefslogtreecommitdiff
path: root/regcomp.sym
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-01-15 20:31:14 +0100
committerYves Orton <demerphq@gmail.com>2023-03-13 21:26:08 +0800
commitd78630f1ec4da716988da18d97cb6425388e696c (patch)
tree6ef6a501ea3219d2f493179de78e930b09ce2763 /regcomp.sym
parent17e3e02ad120eabda2bdb6c297a70d53294437ef (diff)
downloadperl-d78630f1ec4da716988da18d97cb6425388e696c.tar.gz
regcomp.c - extend REF to hold the paren it needs to regcppush
this way we can avoid pushing every buffer, we only need to push the nestroot of the ref.
Diffstat (limited to 'regcomp.sym')
-rw-r--r--regcomp.sym20
1 files changed, 10 insertions, 10 deletions
diff --git a/regcomp.sym b/regcomp.sym
index 1c0af0cd53..2c0f4a0501 100644
--- a/regcomp.sym
+++ b/regcomp.sym
@@ -233,22 +233,22 @@ CLOSE CLOSE, num 1 ; Close corresponding OPEN of #n.
SROPEN SROPEN, none ; Same as OPEN, but for script run
SRCLOSE SRCLOSE, none ; Close preceding SROPEN
-REF REF, num 1 V ; Match some already matched string
-REFF REF, num 1 V ; Match already matched string, using /di rules.
-REFFL REF, num 1 V ; Match already matched string, using /li rules.
+REF REF, num 2 V ; Match some already matched string
+REFF REF, num 2 V ; Match already matched string, using /di rules.
+REFFL REF, num 2 V ; Match already matched string, using /li rules.
# N?REFF[AU] could have been implemented using the FLAGS field of the
# regnode, but by having a separate node type, we can use the existing switch
# statement to avoid some tests
-REFFU REF, num 1 V ; Match already matched string, usng /ui.
-REFFA REF, num 1 V ; Match already matched string, using /aai rules.
+REFFU REF, num 2 V ; Match already matched string, usng /ui.
+REFFA REF, num 2 V ; Match already matched string, using /aai rules.
#*Named references. Code in regcomp.c assumes that these all are after
#*the numbered references
-REFN REF, no-sv 1 V ; Match some already matched string
-REFFN REF, no-sv 1 V ; Match already matched string, using /di rules.
-REFFLN REF, no-sv 1 V ; Match already matched string, using /li rules.
-REFFUN REF, num 1 V ; Match already matched string, using /ui rules.
-REFFAN REF, num 1 V ; Match already matched string, using /aai rules.
+REFN REF, no-sv 2 V ; Match some already matched string
+REFFN REF, no-sv 2 V ; Match already matched string, using /di rules.
+REFFLN REF, no-sv 2 V ; Match already matched string, using /li rules.
+REFFUN REF, num 2 V ; Match already matched string, using /ui rules.
+REFFAN REF, num 2 V ; Match already matched string, using /aai rules.
#*Support for long RE
LONGJMP LONGJMP, off 1 . 1 ; Jump far away.