# ->GenerateFieldForSelectSQL() } );
my $iline_oc = $outer_closing->[_LINE_INDEX_];
- if ( $iline_oc <= $iline_oo + 1 ) {
+ my $token_oo = $outer_opening->[_TOKEN_];
+ if ( $iline_oc <= $iline_oo + 1 && $token_oo eq '(') {
# Look for following semicolon...
my $Knext_nonblank = $self->K_next_nonblank($Kouter_closing);
defined($Knext_nonblank)
? $rLL->[$Knext_nonblank]->[_TYPE_]
: 'b';
- if ( $next_nonblank_type eq ';' ) {
+ if ( $next_nonblank_type eq ';') {
# Then do not weld if no other containers between inner
# opening and closing.
if ( $iline_ic == $iline_io ) {
my $token_oo = $outer_opening->[_TOKEN_];
- my $token_io = $inner_opening->[_TOKEN_];
- $do_not_weld ||= $token_oo eq '(' && $token_io ne '(';
+ $do_not_weld ||= $token_oo eq '(';
}
# DO-NOT-WELD RULE 3:
--- /dev/null
+ # Former -wn blinkers, which oscillated between two states
+
+ # fixed RULE 1 only applies to '('
+ my $res = eval {
+ { $die_on_fetch, 0 }
+ };
+
+ my $res = eval {
+ { $die_on_fetch, 0 }
+ };
+
+ # fixed RULE 2 applies to any inner opening token
+ $app->FORM->{'appbar1'}->set_status(
+ _("Cannot delete zone $name: sub-zones or appellations exist.")
+ );
+
+ $app->FORM->{'appbar1'}->set_status(
+ _("Cannot delete zone $name: sub-zones or appellations exist.")
+ );
--- /dev/null
+ # Former -wn blinkers, which oscillated between two states
+
+ # fixed RULE 1 only applies to '('
+ my $res = eval { { $die_on_fetch, 0 } };
+
+ my $res = eval { { $die_on_fetch, 0 } };
+
+ # fixed RULE 2 applies to any inner opening token
+ $app->FORM->{'appbar1'}->set_status(
+ _("Cannot delete zone $name: sub-zones or appellations exist.")
+ );
+
+ $app->FORM->{'appbar1'}->set_status(
+ _("Cannot delete zone $name: sub-zones or appellations exist.")
+ );
../snippets9.t rt98902.def
../snippets9.t rt98902.rt98902
../snippets9.t rt99961.def
+../snippets17.t wn8.def
+../snippets17.t wn8.wn
--- /dev/null
+ # Former -wn blinkers, which oscillated between two states
+
+ # fixed RULE 1 only applies to '('
+ my $res = eval { { $die_on_fetch, 0 } };
+
+ my $res = eval {
+ { $die_on_fetch, 0 }
+ };
+
+ # fixed RULE 2 applies to any inner opening token
+ $app->FORM->{'appbar1'}->set_status(
+ _("Cannot delete zone $name: sub-zones or appellations exist.")
+ );
+
+ $app->FORM->{'appbar1'}->set_status(_(
+ "Cannot delete zone $name: sub-zones or appellations exist."));
#5 rperl.rperl
#6 wn7.def
#7 wn7.wn
+#8 wn8.def
+#9 wn8.wn
# To locate test #13 you can search for its name or the string '#13'
do { 1; !!(my $x = bless []); }
);
----------
+
+ 'wn8' => <<'----------',
+ # Former -wn blinkers, which oscillated between two states
+
+ # fixed RULE 1 only applies to '('
+ my $res = eval { { $die_on_fetch, 0 } };
+
+ my $res = eval {
+ { $die_on_fetch, 0 }
+ };
+
+ # fixed RULE 2 applies to any inner opening token
+ $app->FORM->{'appbar1'}->set_status(
+ _("Cannot delete zone $name: sub-zones or appellations exist.")
+ );
+
+ $app->FORM->{'appbar1'}->set_status(_(
+ "Cannot delete zone $name: sub-zones or appellations exist."));
+----------
};
####################################
f( do { 1; !!( my $x = bless [] ); } );
#7...........
},
+
+ 'wn8.def' => {
+ source => "wn8",
+ params => "def",
+ expect => <<'#8...........',
+ # Former -wn blinkers, which oscillated between two states
+
+ # fixed RULE 1 only applies to '('
+ my $res = eval {
+ { $die_on_fetch, 0 }
+ };
+
+ my $res = eval {
+ { $die_on_fetch, 0 }
+ };
+
+ # fixed RULE 2 applies to any inner opening token
+ $app->FORM->{'appbar1'}->set_status(
+ _("Cannot delete zone $name: sub-zones or appellations exist.")
+ );
+
+ $app->FORM->{'appbar1'}->set_status(
+ _("Cannot delete zone $name: sub-zones or appellations exist.")
+ );
+#8...........
+ },
+
+ 'wn8.wn' => {
+ source => "wn8",
+ params => "wn",
+ expect => <<'#9...........',
+ # Former -wn blinkers, which oscillated between two states
+
+ # fixed RULE 1 only applies to '('
+ my $res = eval { { $die_on_fetch, 0 } };
+
+ my $res = eval { { $die_on_fetch, 0 } };
+
+ # fixed RULE 2 applies to any inner opening token
+ $app->FORM->{'appbar1'}->set_status(
+ _("Cannot delete zone $name: sub-zones or appellations exist.")
+ );
+
+ $app->FORM->{'appbar1'}->set_status(
+ _("Cannot delete zone $name: sub-zones or appellations exist.")
+ );
+#9...........
+ },
};
my $ntests = 0 + keys %{$rtests};