$rOpts->{'continuation-indentation'} = $rOpts->{'indent-columns'};
}
-
if ( $rOpts->{'line-up-parentheses'} ) {
if ( $rOpts->{'indent-only'}
# Return unless there are nested pairs to weld
return unless defined($rnested_pairs) && @{$rnested_pairs};
+ my $rOpts_break_at_old_method_breakpoints =
+ $rOpts->{'break-at-old-method-breakpoints'};
+
# This array will hold the sequence numbers of the tokens to be welded.
my @welds;
}
}
+ # DO-NOT-WELD RULE 7: Do not weld if this conflicts with -bom
+ # (case b973)
+ if ( !$do_not_weld
+ && $rOpts_break_at_old_method_breakpoints
+ && $iline_io > $iline_oo )
+ {
+
+ foreach my $iline ( $iline_oo + 1 .. $iline_io ) {
+ my $rK_range = $rlines->[$iline]->{_rK_range};
+ next unless defined($rK_range);
+ my ( $Kfirst, $Klast ) = @{$rK_range};
+ next unless defined($Kfirst);
+ if ( $rLL->[$Kfirst]->[_TYPE_] eq '->' ) {
+ $do_not_weld = 1;
+ last;
+ }
+ }
+ }
+
if ($do_not_weld) {
# After neglecting a pair, we start measuring from start of point io
=over 4
+=item B<Add weld rule to avoid conflict between -wn and -bom>
+
+Testing with ramdom input parameters produced states which were oscillating
+because of a conflict between the -wn and -bom parameters. The problem
+was resolved by giving the -bom parameter priority over -wn.
+
+These cases are fixed with this update: b966 b973
+
+20 Feb 2021.
+
=item B<Limit the value of -ci=n to that of -i=n when -xci is set>
Testing with random input parameters produced a number of oscillating states
These cases are fixed with this update:
b707 b770 b912 b920 b930 b933 b939 b940 b941 b942 b978 b974 b979 b980 b981
-20 Feb 2021.
+20 Feb 2021, c16c5ee.
=item B<Modify length tolerance for welding to qw lists>
This fixes cases b654 b655 b943 b944 b967 b968 b969 b970.
-19 Feb 2021.
+19 Feb 2021, 0baafc8.
=item B<Modify space rule between binary plus or minus and a bareword>