From: Steve Hancock Date: Mon, 13 May 2024 22:37:14 +0000 (-0700) Subject: add scope-limiting parens to regex to fix git #142 X-Git-Tag: 20240511.01~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=0916f9d1b604e19298337e87327867fa3d067616;p=perltidy.git add scope-limiting parens to regex to fix git #142 --- diff --git a/lib/Perl/Tidy/Formatter.pm b/lib/Perl/Tidy/Formatter.pm index 9059378c..770a477e 100644 --- a/lib/Perl/Tidy/Formatter.pm +++ b/lib/Perl/Tidy/Formatter.pm @@ -2971,13 +2971,13 @@ EOM $pos_last = pos($opt_style); if ( $opt_style =~ m{ - \G + \G(?: # fix git #142 (\s+) # 1. whitespace | ([\}\]]) # 2. closing bracket | (->) # 3. arrow | ([\[\{]) # 4. opening bracket | (.*) # 5. something else, error - + ) }gcx ) {