summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2006-10-12 23:23:15 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-13 09:02:05 +0000
commitb9b4dddfa592f0a0a9bfbbcc9a725253c5d991f1 (patch)
tree5f71dc4a80fd4ecf351ca7a44ebf79c5a577cefe /regcomp.h
parentc1e8580e8ecd78fc1f67b0caa695b9884a700d93 (diff)
downloadperl-b9b4dddfa592f0a0a9bfbbcc9a725253c5d991f1.tar.gz
Add possessive quantifiers to regex engine.
Message-ID: <9b18b3110610121223m191e47ddtce3398cb0e8ba320@mail.gmail.com> With doc tweaks p4raw-id: //depot/perl@29005
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/regcomp.h b/regcomp.h
index e7b5a2c291..5fb6b14ae6 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -15,6 +15,12 @@ typedef OP OP_4tree; /* Will be redefined later. */
#define PERL_ENABLE_EXTENDED_TRIE_OPTIMISATION 1
#define PERL_ENABLE_POSITIVE_ASSERTION_STUDY 1
#define PERL_ENABLE_EXPERIMENTAL_REGEX_OPTIMISATIONS 0
+/* Unless the next line is uncommented it is illegal to combine lazy
+ matching with possessive matching. Frankly it doesn't make much sense
+ to allow it as X*?+ matches nothing, X+?+ matches a single char only,
+ and X{min,max}?+ matches min times only.
+ */
+/* #define REG_ALLOW_MINMOD_SUSPEND */
/*
* The "internal use only" fields in regexp.h are present to pass info from