}
+ # Fix part 1 for git #63 in which a comment falls
+ # between an -> and the following word. An
+ # alternate fix would be to change operator_expected
+ # to return an UNKNOWN for this type.
+ elsif ( $last_nonblank_type eq '->' ) {
+
+ }
+
# don't complain about possible indirect object
# notation.
# For example:
# functions
$next_tok = $rtokens->[ $i + 1 ];
if ( $next_tok eq '(' ) {
- $type = 'U';
+
+ # Fix part 2 for git #63. Leave type as 'w' to keep
+ # the type the same as if the -> were not separated
+ $type = 'U' unless ( $last_nonblank_type eq '->' );
}
# underscore after file test operator is file handle
@is_keyword{@Keywords} = (1) x scalar(@Keywords);
}
1;
-
=over 4
+=item B<Fix issue git#63>
+
+The following lines produced an error message due to the side comment
+
+ my $fragment = $parser-> #parse_html_string
+ parse_balanced_chunk($I);
+
+This has been fixed.
+18 Apr 2021.
+
=item B<Avoid welding at sort/map/grep paren calls>
Random testing produced several cases of unstable welds in which the inner
This update fixes cases b1077 b1092 b1093 b1094 b1104 b1105 b1108.
-17 Apr 2021.
+17 Apr 2021, d679b48.
=item B<Fix issue git#62>
This fixes issue git #62. A similar issue for the % operator was fixed.
-17 Apr 2021.
+17 Apr 2021, f80d677.
=item B<Fix problem involving -bbx=2 -xci -osbr and similar -otr flags>
commas, and this in turn caused the -bbx flag to turn off the -xci flag.
This problem was fixed.
-15 Apr 2021.
+15 Apr 2021, 21ef53b.
=item B<Fix rare line break problem>
The problem was fixed by not allowing the formatter to consider existing breaks
at highly stressed locations such as these.
-15 Apr 2021.
+15 Apr 2021, 9f15b9d.
=item B<Fix problem parsing anonymous subs with attribute lists>
--- /dev/null
+my $fragment = $parser-> #parse_html_string
+ parse_balanced_chunk($I);
--- /dev/null
+my $fragment = $parser-> #parse_html_string
+ parse_balanced_chunk($I);
../snippets9.t rt98902.def
../snippets9.t rt98902.rt98902
../snippets9.t rt99961.def
+../snippets24.t git63.def
#8 lpxl.lpxl3
#9 lpxl.lpxl4
#10 lpxl.lpxl5
+#11 git63.def
# To locate test #13 you can search for its name or the string '#13'
) ;
----------
+ 'git63' => <<'----------',
+my $fragment = $parser-> #parse_html_string
+ parse_balanced_chunk($I);
+----------
+
'lpxl' => <<'----------',
# simple function call
my $loanlength = getLoanLength(
};
#10...........
},
+
+ 'git63.def' => {
+ source => "git63",
+ params => "def",
+ expect => <<'#11...........',
+my $fragment = $parser-> #parse_html_string
+ parse_balanced_chunk($I);
+#11...........
+ },
};
my $ntests = 0 + keys %{$rtests};