From: Steve Hancock Date: Wed, 31 Jul 2024 14:29:45 +0000 (-0700) Subject: set line break strength for ^^ X-Git-Tag: 20240511.08~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=236efe7ada930dbacce05504d576c982285acac6;p=perltidy.git set line break strength for ^^ --- diff --git a/lib/Perl/Tidy/Formatter.pm b/lib/Perl/Tidy/Formatter.pm index 4c9d14e9..24c6a200 100644 --- a/lib/Perl/Tidy/Formatter.pm +++ b/lib/Perl/Tidy/Formatter.pm @@ -4646,6 +4646,11 @@ EOM $right_bond_strength{'&&'} = NOMINAL; $left_bond_strength{'&&'} = $left_bond_strength{'||'} + 0.1; + # set strength of ^^ a little lower than ||. See git157. + # Note that 0 ^^ 0 || 1 = 0 ^^ (0 || 1) is true + $right_bond_strength{'^^'} = NOMINAL; + $left_bond_strength{'^^'} = $left_bond_strength{'||'} - 0.1; + $left_bond_strength{';'} = VERY_STRONG; $right_bond_strength{';'} = VERY_WEAK; $left_bond_strength{'f'} = VERY_STRONG; @@ -16518,7 +16523,7 @@ sub cross_check_sub_calls { if ($is_dump) { $header .= " 'i'=indeterminate" } $call_arg_warning_output = <{output_line}; @@ -16543,7 +16548,7 @@ EOM if ( @{$rreturn_warnings} ) { $return_warning_output = <{output_line};