-
Notifications
You must be signed in to change notification settings - Fork 577
Further elimination of unescaped left braces in regular expressions #17023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
From @jkeenanpod/perldeprecation.pod contains the following entry for perl-5.32: ##### The simple rule to remember, if you want to match a literal qr{abc\{def\}ghi} Forcing literal "{" characters to be escaped will enable Literal uses of "{" were deprecated in Perl 5.20, and some This entry was recorded in the following commit: ##### Raise deprecation for qr/(?foo})/ An unescaped left brace that is meant to be taken literally reg_mesg.t tests the known set of these contexts, currently /^{/ /foo|{/ /foo|^{/ /foo(:?{bar)/ /\s*{/ /a{3,4}{/ This commit deprecates this context: /foo({bar})/ This probably should have been illegal all along when 'bar' qr/(+0)/ Quantifier follows nothing in regex This deprecation will allow ({...}) to be usable for a Make it so. |
From @jkeenanSummary of my perl5 (revision 5 version 31 subversion 0) configuration: Characteristics of this binary (from libperl): |
From @jkeenanOn Sat, 25 May 2019 02:18:57 GMT, jkeenan@pobox.com wrote:
Karl, do you expect to be taking this ticket on soon? It's on our 5.32 blockers list. Thanks. -- |
The RT System itself - Status changed from 'new' to 'open' |
I'm now closing this ticket. There will not be warnings when a left brace immediately follows a parenthesis, as there is a lot of code out there that has that, and wants the brace to be treated literally. I think we got cleared up the places where we want to change the meaning of unescaped lbraces. Those contexts have been fatal for a while now. But I'm thinking of giving it all of 5.32 as well to generate errors rather than jumping in and changing the meaning. |
Migrated from rt.perl.org#134141 (status was 'open')
Searchable as RT134141$
The text was updated successfully, but these errors were encountered: