--continuation-indentation=1
--maximum-line-length=12
+==> b1224.in <==
+# S1
+ return ( $self->_testStrand ( $other, $so )
+ and not(
+ ( $self->start () > $other->end ()
+ or $self->end () < $other->start ()
+ )
+ )
+ ) ;
+
+#S2
+ return ($self->_testStrand ( $other, $so ) and not( (
+ $self->start () > $other->end ()
+ or $self->end () < $other->start ()
+ ) )
+ ) ;
+
+==> b1224.par <==
+--indent-columns=2
+--line-up-parentheses
+--maximum-line-length=55
+--nostack-closing-paren
+--nostack-opening-paren
+--vertical-tightness-closing=0
+--vertical-tightness=2
+--weld-nested-containers
+--space-function-paren
+
==> b131.in <==
unless
( open( SCORE, "+>>$Score_File" ) )
# STEP 3: Now look ahead for a ternary and, if found, use it.
# This fixes case b1182.
+ # Also look for a ')' at the same level and, if found, use it.
+ # This fixes case b1224.
if ( $Kref < $Kouter_opening ) {
my $Knext = $rLL->[$Kref]->[_KNEXT_SEQ_ITEM_];
my $level_oo = $rLL->[$Kouter_opening]->[_LEVEL_];
while ( $Knext < $Kouter_opening ) {
- if ( $is_ternary{ $rLL->[$Knext]->[_TYPE_] }
- && $rLL->[$Kref]->[_LEVEL_] == $level_oo )
- {
- $Kref = $Knext;
- last;
+ if ( $rLL->[$Knext]->[_LEVEL_] == $level_oo ) {
+ if ( $is_ternary{ $rLL->[$Knext]->[_TYPE_] }
+ || $rLL->[$Knext]->[_TOKEN_] eq ')' )
+ {
+ $Kref = $Knext;
+ last;
+ }
}
$Knext = $rLL->[$Knext]->[_KNEXT_SEQ_ITEM_];
}