## 2021 06 25.02
+ - Fixed an undefined variable message, see git #67. When a format skipping
+ comment '#<<' is placed before the first line of code in a script, a
+ message 'Use of uninitialized value $Ktoken_vars in numeric ...' can
+ occur.
+
+ - A warning will no longer be given if a script has a code-skipping begin
+ comment '#<<V' which is not terminated with a closing comment '#>>V'. This
+ makes it behave like the related format-skipping option.
+
- Removed the limit on -ci=n when -xci is set, reference: rt #136415.
This update removes a limit in the previous two versions in which the
value of -ci=n was limited to the value of -i=n when -xci was set.
&& $want_left_space{$next_type} == WS_NO
)
- # or we might be followed by the start of a quote
- || $next_nonblank_type =~ /^[\/\?]$/
+ # or we might be followed by the start of a quote,
+ # fixes c039.
+ || substr( $next_nonblank_token, 0, 1 ) eq '/'
+
)
{
$bond_str = NO_BREAK;
if ( $types_to_go[ $i_next_nonblank + 1 ] eq 'n' );
}
+ # Fix for c039
+ elsif ( $type eq 'w' ) {
+ $bond_str = NO_BREAK
+ if ( substr( $next_nonblank_token, 0, 1 ) eq '/' );
+ }
+
my $bond_str_2 = $bond_str;
#---------------------------------------------------------------
my $seqno_parent = $seqno_stack{ $depth_next - 1 };
$seqno_parent = SEQ_ROOT unless defined($seqno_parent);
push @{ $rchildren_of_seqno->{$seqno_parent} }, $type_sequence;
- $rparent_of_seqno->{$type_sequence} = $seqno_parent;
- $seqno_stack{$depth_next} = $type_sequence;
- $K_old_opening_by_seqno{$type_sequence} = $Ktoken_vars;
+ $rparent_of_seqno->{$type_sequence} = $seqno_parent;
+ $seqno_stack{$depth_next} = $type_sequence;
+ $K_old_opening_by_seqno{$type_sequence} = $Ktoken_vars;
$depth_next++;
if ( $depth_next > $depth_next_max ) {
}
if ( $tokenizer_self->[_in_skipped_] ) {
- warning("hit EOF while in lines skipped with --code-skipping\n");
+ write_logfile_entry(
+ "hit EOF while in lines skipped with --code-skipping\n");
}
if ( $tokenizer_self->[_in_pod_] ) {
=over 4
+=item B<Removed warning message if ending in code skipping section>
+
+In the previous version, a warning was produced if a 'code-skipping' opening comment
+'#<<V' was not followed by a closing comment '#>>V'. But the related 'format-skipping'
+commands do not give a warning if a '#<<<' comment is not ended with a '#>>>' closing
+comment. In order to be able to smoothly change between these options, it seems best
+to remove the warning about a missing '#>>V'. There is still a message in the log file
+about this, so if there is any uncertainty about it, a log file can be saved and consulted.
+
+10 Jul 2021.
+
=item B<Improve logic for distinguishing a pattern vs a division>
Testing with side comments produced the following snippet which caused a error
This update fixes these problems, case c040.
-9 Jul 2021.
+9 Jul 2021, ffe4351.
=item B<Fix problem caused by side comment after ++>
The same problem occurs for '--' instead of '++'. This is fixed with this
update, case c042.
-8 Jul 2021.
+8 Jul 2021, 20cc9a0.
=item B<Fix problem caused by side comment after pointer, part 2>
This is fixed in this update, case c041.
-7 Jul 2021.
+7 Jul 2021, 1806772.
=item B<Fix problem caused by side comment after pointer>