summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2014-02-05 22:06:02 -0700
committerKarl Williamson <public@khwilliamson.com>2014-02-05 22:17:56 -0700
commit32d028130217347dcbe6859b420b505b89a30d9d (patch)
tree0e3af9e55a6d64bb1bff2b68416294160245f115 /regcomp.c
parent9b8f4e9212208b42402a7e6c029025cc8a6ae4db (diff)
downloadperl-32d028130217347dcbe6859b420b505b89a30d9d.tar.gz
Make a literal "{" fatal after \b and \B in regexes
These have been deprecated since v5.14.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index 919035d29e..499a366fdb 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -11277,7 +11277,8 @@ tryagain:
FLAGS(ret) = get_regex_charset(RExC_flags);
*flagp |= SIMPLE;
if (! SIZE_ONLY && (U8) *(RExC_parse + 1) == '{') {
- ckWARNdep(RExC_parse, "\"\\b{\" is deprecated; use \"\\b\\{\" or \"\\b[{]\" instead");
+ /* diag_listed_as: Use "%s" instead of "%s" */
+ vFAIL("Use \"\\b\\{\" instead of \"\\b{\"");
}
goto finish_meta_pat;
case 'B':
@@ -11291,7 +11292,8 @@ tryagain:
FLAGS(ret) = get_regex_charset(RExC_flags);
*flagp |= SIMPLE;
if (! SIZE_ONLY && (U8) *(RExC_parse + 1) == '{') {
- ckWARNdep(RExC_parse, "\"\\B{\" is deprecated; use \"\\B\\{\" or \"\\B[{]\" instead");
+ /* diag_listed_as: Use "%s" instead of "%s" */
+ vFAIL("Use \"\\B\\{\" instead of \"\\B{\"");
}
goto finish_meta_pat;