summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-04-12 11:50:06 -0600
committerKarl Williamson <public@khwilliamson.com>2011-04-12 12:34:50 -0600
commit9442e3b8d7c9c3e8121cad5682064cfc3e185f32 (patch)
tree84f2c601cea8ab521cde26e9e8d06affd5553cc4 /t
parent0c96c706fef52effd833861ae408c0cedef51125 (diff)
downloadperl-9442e3b8d7c9c3e8121cad5682064cfc3e185f32.tar.gz
regcomp: Improve error message for (?-d:...)
As agreed, this improvement is going into 5.14. A customized message is output, instead of a generic one.
Diffstat (limited to 't')
-rw-r--r--t/re/reg_mesg.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/re/reg_mesg.t b/t/re/reg_mesg.t
index 976798c132..d6b343b1c3 100644
--- a/t/re/reg_mesg.t
+++ b/t/re/reg_mesg.t
@@ -69,6 +69,7 @@ my @death =
'/(?da:foo)/' => 'Regexp modifiers "d" and "a" are mutually exclusive in regex; marked by {#} in m/(?da{#}:foo)/',
'/(?lil:foo)/' => 'Regexp modifier "l" may not appear twice in regex; marked by {#} in m/(?lil{#}:foo)/',
'/(?aaia:foo)/' => 'Regexp modifier "a" may appear a maximum of twice in regex; marked by {#} in m/(?aaia{#}:foo)/',
+'/(?i-l:foo)/' => 'Regexp modifier "l" may not appear after the "-" in regex; marked by {#} in m/(?i-l{#}:foo)/',
'/((x)/' => 'Unmatched ( in regex; marked by {#} in m/({#}(x)/',