$right_bond_strength{'&&'} = NOMINAL;
$left_bond_strength{'&&'} = $left_bond_strength{'||'} + 0.1;
- # set strength of ^^ above && and ||. See git157. Note that:
+ # set strength of ^^ between && and ||. See git157.
# "1 || 0 ^^ 0 || 1" = true, so ^^ is stronger than ||
- # "1 && 0 ^^ 1 = true, so ^^ is stronger than &&
+ # "1 ^^ 1 && 0" = true, so && is stronger than ^^
$right_bond_strength{'^^'} = NOMINAL;
- $left_bond_strength{'^^'} = $left_bond_strength{'||'} + 0.15;
+ $left_bond_strength{'^^'} = $left_bond_strength{'||'} + 0.05;
$left_bond_strength{';'} = VERY_STRONG;
$right_bond_strength{';'} = VERY_WEAK;
$self->report_v_string($tok);
}
- elsif ( $ris_constant->{$package}{$sub_name} ) {
- $type = 'C';
- }
-
# bareword after sort has implied empty prototype; for example:
# @sorted = sort numerically ( 53, 29, 11, 32, 7 );
# This has priority over whatever the user has specified.
$type = 'Z';
}
+ # issue c382: this elsif statement moved from above because
+ # previous check for type 'Z' after sort has priority.
+ elsif ( $ris_constant->{$package}{$sub_name} ) {
+ $type = 'C';
+ }
+
# Note: strangely, perl does not seem to really let you create
# functions which act like eval and do, in the sense that eval
# and do may have operators following the final }, but any operators