summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2013-06-13 21:02:36 +0200
committerYves Orton <demerphq@gmail.com>2013-06-13 21:15:00 +0200
commit5f3789aabfaf43d0b9aacbc4e2bf168d1db0e9f2 (patch)
tree0d24793a63dae00653e94e12a14d9ea61e31f5b3 /regcomp.h
parent6fd8c33ab8e814d9071f229419b493eea5a6df0f (diff)
downloadperl-5f3789aabfaf43d0b9aacbc4e2bf168d1db0e9f2.tar.gz
Possessive and non greedy quantifier modifiers are mutually exclusive
When I added support for possessive modifiers it was possible to build perl so that they could be combined even if it made no sense to do so. Later on in relation to Perl #118375 I got confused and thought they were undocumented but legal. So to prevent further confusion, and since nobody has every mentioned it since they were added, I am removing the unusued conditional build logic, and clearly documenting why they aren't allowed.
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/regcomp.h b/regcomp.h
index bf497e0eaa..8b1b6955bc 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -26,13 +26,6 @@
#define RE_TRACK_PATTERN_OFFSETS
#endif
-/* 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
* compile to execute that permits the execute phase to run lots faster on