diff options
author | Karl Williamson <khw@cpan.org> | 2018-12-30 10:18:43 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-12-30 11:01:00 -0700 |
commit | 80101a2ccb78ca0743d8612a71a38c9fcf03a341 (patch) | |
tree | 962344c5980089d35031788152779c1792ce195b | |
parent | 435b3a334a8395d68b51289a1c83ca1d4ea8a1f7 (diff) | |
download | perl-80101a2ccb78ca0743d8612a71a38c9fcf03a341.tar.gz |
regcomp.sym: Note specialized use of 'flags' in 2 OPs
-rw-r--r-- | pod/perldebguts.pod | 8 | ||||
-rw-r--r-- | regcomp.sym | 4 | ||||
-rw-r--r-- | regnodes.h | 4 |
3 files changed, 10 insertions, 6 deletions
diff --git a/pod/perldebguts.pod b/pod/perldebguts.pod index 2772a2fc1c..2aa906e903 100644 --- a/pod/perldebguts.pod +++ b/pod/perldebguts.pod @@ -748,8 +748,12 @@ will be lost. BRANCHJ off 1 1 BRANCH with long offset. # Special Case Regops - IFMATCH off 1 1 Succeeds if the following matches. - UNLESSM off 1 1 Fails if the following matches. + IFMATCH off 1 1 Succeeds if the following matches; non-zero + flags "f" means lookbehind assertion + starting "f" characters before current + UNLESSM off 1 1 Fails if the following matches; non-zero + flags "f" means lookbehind assertion + starting "f" characters before current SUSPEND off 1 1 "Independent" sub-RE. IFTHEN off 1 1 Switch, should be preceded by switcher. GROUPP num 1 Whether the group matched. diff --git a/regcomp.sym b/regcomp.sym index d48d57e286..09a21e9cc0 100644 --- a/regcomp.sym +++ b/regcomp.sym @@ -177,8 +177,8 @@ LONGJMP LONGJMP, off 1 . 1 ; Jump far away. BRANCHJ BRANCHJ, off 1 V 1 ; BRANCH with long offset. #*Special Case Regops -IFMATCH BRANCHJ, off 1 . 1 ; Succeeds if the following matches. -UNLESSM BRANCHJ, off 1 . 1 ; Fails if the following matches. +IFMATCH BRANCHJ, off 1 . 1 ; Succeeds if the following matches; non-zero flags "f" means lookbehind assertion starting "f" characters before current +UNLESSM BRANCHJ, off 1 . 1 ; Fails if the following matches; non-zero flags "f" means lookbehind assertion starting "f" characters before current SUSPEND BRANCHJ, off 1 V 1 ; "Independent" sub-RE. IFTHEN BRANCHJ, off 1 V 1 ; Switch, should be preceded by switcher. GROUPP GROUPP, num 1 ; Whether the group matched. diff --git a/regnodes.h b/regnodes.h index e87d912faa..412a630561 100644 --- a/regnodes.h +++ b/regnodes.h @@ -83,8 +83,8 @@ #define NREFFA 69 /* 0x45 Match already matched string, folded using unicode rules for non-utf8, no mixing ASCII, non-ASCII */ #define LONGJMP 70 /* 0x46 Jump far away. */ #define BRANCHJ 71 /* 0x47 BRANCH with long offset. */ -#define IFMATCH 72 /* 0x48 Succeeds if the following matches. */ -#define UNLESSM 73 /* 0x49 Fails if the following matches. */ +#define IFMATCH 72 /* 0x48 Succeeds if the following matches; non-zero flags "f" means lookbehind assertion starting "f" characters before current */ +#define UNLESSM 73 /* 0x49 Fails if the following matches; non-zero flags "f" means lookbehind assertion starting "f" characters before current */ #define SUSPEND 74 /* 0x4a "Independent" sub-RE. */ #define IFTHEN 75 /* 0x4b Switch, should be preceded by switcher. */ #define GROUPP 76 /* 0x4c Whether the group matched. */ |