--add-trailing-commas
--want-trailing-commas=1
+==> b1492.in <==
+ $col->configure ( -command =>
+ sub { $t->configure ( -background => $color ); } );
+
+ $col->configure(
+ -command => sub { $t->configure(-background => $color); },
+ );
+
+==> b1492.par <==
+--maximum-line-length=58
+--variable-maximum-line-length
+--space-function-paren
+--paren-tightness=2
+--add-trailing-commas
+--want-trailing-commas='h'
+--delete-trailing-commas
+
+==> b1493.in <==
+ $w->bind('<Page_Down>' =>
+ sub { $t1->yview(scroll => 1, 'pages'); },);
+
+ $w->bind(
+ '<Page_Down>' => sub { $t1->yview(scroll => 1, 'pages'); }
+ );
+
+==> b1493.par <==
+--maximum-line-length=58
+--variable-maximum-line-length
+--paren-tightness=2
+--add-trailing-commas
+--want-trailing-commas='h'
+--delete-trailing-commas
+
+==> b1494.in <==
+ $b4->bind('<1>' =>
+ sub { cset('D', 'HilightColorFore', "\$color"); },);
+
+ $b4->bind(
+ '<1>' => sub { cset('D', 'HilightColorFore', "\$color"); }
+ );
+
+==> b1494.par <==
+--maximum-line-length=58
+--variable-maximum-line-length
+--paren-tightness=2
+--add-trailing-commas
+--want-trailing-commas='h'
+--delete-trailing-commas
+
==> b156.in <==
# State 1
{
Stack )
; # inherit from Stack
+==> b1492 <==
+ $col->configure (
+ -command => sub { $t->configure (-background => $color); }
+ );
+
+ $col->configure (
+ -command => sub { $t->configure (-background => $color); }
+ );
+
+==> b1493 <==
+ $w->bind(
+ '<Page_Down>' => sub { $t1->yview(scroll => 1, 'pages'); }
+ );
+
+ $w->bind(
+ '<Page_Down>' => sub { $t1->yview(scroll => 1, 'pages'); }
+ );
+
+==> b1494 <==
+ $b4->bind(
+ '<1>' => sub { cset('D', 'HilightColorFore', "\$color"); }
+ );
+
+ $b4->bind(
+ '<1>' => sub { cset('D', 'HilightColorFore', "\$color"); }
+ );
+
==> b156 <==
# State 1
{
$fat_comma_count = $rtype_count->{'=>'};
}
+ my $follows_isolated_closing_token;
+
#----------------------------------------------------------------
# If no existing commas, see if we have an inner nested container
#----------------------------------------------------------------
return;
}
+ # Does this trailing comma follow an isolated closing token?
+ if ($is_nesting_right) {
+ my $ix_pp = $rLL_new->[$Kpp]->[_LINE_INDEX_];
+ my $Kpp_m = $self->K_previous_nonblank( $Kpp, $rLL_new );
+ if ($Kpp_m) {
+ my $ix_pp_m = $rLL_new->[$Kpp_m]->[_LINE_INDEX_];
+ $follows_isolated_closing_token = $ix_pp > $ix_pp_m;
+ }
+ }
+
#--------------------------------
# If no comma and no fat comma...
#--------------------------------
# or has a fat comma not in parens or in parens over several lines
# (b1489, b1490)
- || ( $fat_comma_count
- && ( !$is_paren_list || $iline_c - $iline_o > 1 ) )
+ || (
+ $fat_comma_count
+ ## stability fix for b1492 b1493 b1494: a single fat comma in
+ ## parens must follow an isolated closing token
+ ##&& ( !$is_paren_list || $iline_c - $iline_o > 1 ) )
+ && (
+ !$is_paren_list
+ || (
+ ( $iline_c - $iline_o > 1 )
+ && ( $follows_isolated_closing_token
+ || $fat_comma_count > 1 )
+ )
+ )
+ )
# or contains an inner multiline structure
|| $has_inner_multiline_structure