This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.sym: Clarify regnode comment
authorKarl Williamson <khw@cpan.org>
Sat, 16 Dec 2017 19:13:01 +0000 (12:13 -0700)
committerKarl Williamson <khw@cpan.org>
Sun, 17 Dec 2017 04:56:50 +0000 (21:56 -0700)
pod/perldebguts.pod
regcomp.sym
regnodes.h

index a725751..bb60269 100644 (file)
@@ -681,7 +681,7 @@ will be lost.
 
  # OPEN,CLOSE,GROUPP     ...are numbered at compile time.
  OPEN            num 1      Mark this point in input as start of #n.
- CLOSE           num 1      Analogous to OPEN.
+ CLOSE           num 1      Close corresponding OPEN of #n.
 
  REF             num 1      Match some already matched string
  REFF            num 1      Match already matched string, folded using
index 999d965..f83f693 100644 (file)
@@ -131,7 +131,7 @@ WHILEM      WHILEM,     no 0 V    ; Do curly processing and see if rest matches.
 
 #*OPEN,CLOSE,GROUPP     ...are numbered at compile time.
 OPEN        OPEN,       num 1     ; Mark this point in input as start of #n.
-CLOSE       CLOSE,      num 1     ; Analogous to OPEN.
+CLOSE       CLOSE,      num 1     ; Close corresponding OPEN of #n.
 
 REF         REF,        num 1 V   ; Match some already matched string
 REFF        REF,        num 1 V   ; Match already matched string, folded using native charset rules for non-utf8
index 8fe0f41..8d5cee7 100644 (file)
@@ -61,7 +61,7 @@
 #define        CURLYX                  47      /* 0x2f Match this complex thing {n,m} times. */
 #define        WHILEM                  48      /* 0x30 Do curly processing and see if rest matches. */
 #define        OPEN                    49      /* 0x31 Mark this point in input as start of #n. */
-#define        CLOSE                   50      /* 0x32 Analogous to OPEN. */
+#define        CLOSE                   50      /* 0x32 Close corresponding OPEN of #n. */
 #define        REF                     51      /* 0x33 Match some already matched string */
 #define        REFF                    52      /* 0x34 Match already matched string, folded using native charset rules for non-utf8 */
 #define        REFFL                   53      /* 0x35 Match already matched string, folded in loc. */