--notrim-qw
--weld-nested-containers
+==> b1190.in <==
+# S1
+print
+ "not "
+ unless
+ ref+(
+ map{
+ sub:
+ lvalue{
+ "a";
+ }
+ }1
+ )[0]eq
+ "CODE";
+
+# S2
+print
+ "not "
+ unless
+ ref+(
+ map{
+ sub:lvalue
+ {
+ "a";
+ }
+ }1
+ )[0]eq
+ "CODE";
+
+
+==> b1190.par <==
+--noadd-whitespace
+--maximum-line-length=10
+--opening-anonymous-sub-brace-on-new-line
+--variable-maximum-line-length
+
==> b120.in <==
# Same as bug96
# State 1
# Decide if 'sub :' can be the start of a sub attribute list.
# We will decide based on if the colon is followed by a
# bareword which is not a keyword.
+ # Changed inext+1 to inext to fixed case b1190.
my $sub_attribute_ok_here;
if ( $is_sub{$tok_kw}
&& $expecting != OPERATOR
&& $next_nonblank_token eq ':' )
{
my ( $nn_nonblank_token, $i_nn ) =
- find_next_nonblank_token( $i_next + 1,
+ find_next_nonblank_token( $i_next,
$rtokens, $max_token_index );
$sub_attribute_ok_here =
$nn_nonblank_token =~ /^\w/
=over 4
+=item B<Fix error parsing sub attributes without spaces, b1190>
+
+Testing with random parameters produced an instability which was caused
+by incorrect parsing of a sub attribute list without spaces, as in
+
+ sub:lvalue{"a"}
+
+This update fixes case b1190.
+
+9 Aug 2021.
+
=item B<Fix rare loss of vertical alignment in welded containers, c053>
This update corrects a rare loss of vertical alignment in welded containers.
This fixes case b1189.
-7 Aug 2021.
+7 Aug 2021, e9c25f2.
=item B<Fix edge cases of formatting instability, b1187 b1188>.