]> git.donarmstrong.com Git - perltidy.git/commitdiff
eliminated [ as an alignment token
authorSteve Hancock <perltidy@users.sourceforge.net>
Sun, 3 Nov 2019 04:53:49 +0000 (21:53 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sun, 3 Nov 2019 04:53:49 +0000 (21:53 -0700)
lib/Perl/Tidy/Formatter.pm

index 27cece4375c60c354eed3dfff7a3b34b21c0ef95..24a0cd2bb47cbaa78935596e6e6499e0314fc237 100644 (file)
@@ -11602,7 +11602,7 @@ sub get_seqno {
 
                 # align before one of these types..
                 # Note: add '.' after new vertical aligner is operational
-                elsif ( $is_vertical_alignment_type{$type} ) {
+                elsif ( $is_vertical_alignment_type{$type} && $token ne '[') {
                     $alignment_type = $token;
 
                     # Do not align a terminal token.  Although it might