summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2007-02-13 23:04:54 +0100
committerH.Merijn Brand <h.m.brand@xs4all.nl>2007-02-14 07:54:59 +0000
commit87e95b7ff3268cc4f947098ed09d244372b3af0d (patch)
tree558694850b849d198a69d4f0111e9706388c2d9f /regexp.h
parentee03edd30dac4a70bf2d56895e9bf4dd1243abc8 (diff)
downloadperl-87e95b7ff3268cc4f947098ed09d244372b3af0d.tar.gz
Re: [PATCH] Document that m//k works
Message-ID: <9b18b3110702131304q370f3530j463c1a59c5ac1dfe@mail.gmail.com> p4raw-id: //depot/perl@30278
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/regexp.h b/regexp.h
index 68dd547701..c526cf98e5 100644
--- a/regexp.h
+++ b/regexp.h
@@ -161,9 +161,13 @@ typedef struct regexp_engine {
/* chars and strings used as regex pattern modifiers
* Singlular is a 'c'har, plural is a "string"
+ *
+ * NOTE, KEEPCOPY was originally 'k', but was changed to 'p' for preserve
+ * for compatibility reasons with Regexp::Common which highjacked (?k:...)
+ * for its own uses. So 'k' is out as well.
*/
#define EXEC_PAT_MOD 'e'
-#define KEEPCOPY_PAT_MOD 'k'
+#define KEEPCOPY_PAT_MOD 'p'
#define ONCE_PAT_MOD 'o'
#define GLOBAL_PAT_MOD 'g'
#define CONTINUE_PAT_MOD 'c'
@@ -173,7 +177,7 @@ typedef struct regexp_engine {
#define XTENDED_PAT_MOD 'x'
#define ONCE_PAT_MODS "o"
-#define KEEPCOPY_PAT_MODS "k"
+#define KEEPCOPY_PAT_MODS "p"
#define EXEC_PAT_MODS "e"
#define LOOP_PAT_MODS "gc"