You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add missing deprecation message for unescaped '{' in regexes
The use of literal '{' without being escaped has been deprecated since
5.16, and warned on since 5.20. In 5.24, this has been made illegal,
with a bunch of CPAN modules broken by it, in spite of the long
deprecation period. See
https://rt.perl.org/Ticket/Display.html?id=128139
Unfortunately, I overlooked a code path, and not all instances that
should have warned did so in fact. This was spotted by Tom Wyant in
https://rt.perl.org/Ticket/Display.html?id=128213
This commit adds that warning, and rewords the fatal one slightly, and
clarifies the whole thing in perldiag.
Copy file name to clipboardExpand all lines: pod/perldelta.pod
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -271,7 +271,12 @@ Perl yourself. The #! line at the top of your file could look like
271
271
272
272
=item *
273
273
274
-
XXX L<message|perldiag/"message">
274
+
L<Unescaped left brace in regex is deprecated here, passed through in regex; marked by S<<-- HERE> in mE<sol>%sE<sol>|perldiag/"Unescaped left brace in regex is deprecated here, passed through in regex; marked by S<<-- HERE> in m/%s/">
275
+
276
+
Unescaped left braces are already illegal in some contexts in regular
277
+
expression patterns, but, due to an oversight, no deprecation warning
278
+
was raised in other contexts where they are intended to become illegal.
279
+
This warning is now raised in these contexts.
275
280
276
281
=back
277
282
@@ -293,7 +298,11 @@ XXX Changes (i.e. rewording) of diagnostic messages go here
293
298
294
299
=item *
295
300
296
-
XXX Describe change here
301
+
L<Unescaped left brace in regex is illegal here in regex; marked by S<<-- HERE> in mE<sol>%sE<sol>|perldiag/"Unescaped left brace in regex is illegal here in regex; marked by S<<-- HERE> in m/%s/">
302
+
303
+
The word "here" has been added to the message that was raised in
304
+
v5.25.1. This is to indicate that there are contexts in which unescaped
0 commit comments