From: Steve Hancock Date: Fri, 9 Feb 2024 01:05:55 +0000 (-0800) Subject: add comment X-Git-Tag: 20240202.01~3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f523fa253fb27bc4813c92a56ef8aebdda0dc659;p=perltidy.git add comment --- diff --git a/lib/Perl/Tidy/Formatter.pm b/lib/Perl/Tidy/Formatter.pm index f9031d5d..42d3f20e 100644 --- a/lib/Perl/Tidy/Formatter.pm +++ b/lib/Perl/Tidy/Formatter.pm @@ -10264,6 +10264,11 @@ sub interbracket_arrow_check { # my $v2 = [ 1, 2, [ 3, 4 ] ]->[2][0]; # ok, keep required arrow # my $v3 = [ 1, 2, [ 3, 4 ] ][2][0]; # Error + # Note that an arrow does not get placed between '}' and '[' here: + # my $val = ${$x}[1]; + # Perltidy marks the '$' as type 't', and since the logic below checks + # for identifiers of type 'i', it will work ok. + # We will maintain the flag for this check in the following hash: my %trailing_arrow_ok_by_seqno;