--weld-nested-containers
--space-function-paren
+==> b1227.in <==
+# S1
+foreach$n(qw( msm ali ))
+{
+ foreach$e(qw(
+ uc16
+ ));
+}
+
+# S2
+foreach$n(qw( msm ali ))
+{ foreach$e(qw(
+ uc16
+ ) );
+}
+
+==> b1227.par <==
+
+
+
+--noadd-whitespace
+--block-brace-vertical-tightness=1
+--continuation-indentation=10
+--delete-old-whitespace
+--line-up-parentheses
+--opening-brace-on-new-line
+--paren-vertical-tightness-closing=1
+--stack-opening-paren
+--weld-nested-containers
+
==> b131.in <==
unless
( open( SCORE, "+>>$Score_File" ) )
# - Require blank before certain previous characters to fix b1111.
# - Add ';' to fix case b1139
# - Convert from '$ok_to_weld' to '$new_weld_ok' to fix b1162.
+ # - relaxed constraints for b1227
if ( $starting_ci
&& $rOpts_line_up_parentheses
&& $rOpts_delete_old_whitespace
my $type_pp = 'b';
if ( $Kprev >= 0 ) { $type_pp = $rLL->[ $Kprev - 1 ]->[_TYPE_] }
unless (
- $type_prev =~ /^[\,\.\;]/
- || $type_prev =~ /^[=\{\[\(\L]/ && $type_pp eq 'b'
+ $type_prev =~ /^[\,\.\;]/
+ || $type_prev =~ /^[=\{\[\(\L]/
+ && ( $type_pp eq 'b' || $type_pp eq '}' || $type_first eq 'k' )
|| $type_first =~ /^[=\,\.\;\{\[\(\L]/
|| $type_first eq '||'
- || ( $type_first eq 'k' && $token_first eq 'if'
- || $token_first eq 'or' )
+ || (
+ $type_first eq 'k'
+ && ( $token_first eq 'if'
+ || $token_first eq 'or' )
+ )
)
{
$msg =
-"Skipping weld: poor break with -lp and ci at type_first='$type_first' type_prev='$type_prev'\n";
+"Skipping weld: poor break with -lp and ci at type_first='$type_first' type_prev='$type_prev' type_pp=$type_pp\n";
$new_weld_ok = 0;
}
}
=over 4
-=item B<Fix issue c082, -cscw preventing deletion of closing side comments>
+=item B<Fix issue c081, -cscw preventing deletion of closing side comments>
Random testing revealed a problem in which an old closing side comment was not
being deleted when it fell below the interval specified on -csci=n
But if we also add the -cscw flag (warnings) then it was not being removed. This
update fixes this problem (issue c081).
-2 Oct 2021
+2 Oct 2021, 25ef8e8
=item B<Partial fix for issue git #74 on -lp at anonymous subs>