From: Steve Hancock Date: Sun, 2 Jun 2019 20:38:51 +0000 (-0700) Subject: removed restriction on '=~' as alignment token X-Git-Tag: 20190915~26 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6fcfeb511a1d4895d2b064c4ed0850f1b1340513;p=perltidy.git removed restriction on '=~' as alignment token --- diff --git a/lib/Perl/Tidy/Formatter.pm b/lib/Perl/Tidy/Formatter.pm index 0d30a348..c1314a33 100644 --- a/lib/Perl/Tidy/Formatter.pm +++ b/lib/Perl/Tidy/Formatter.pm @@ -11535,19 +11535,20 @@ sub get_seqno { $alignment_type = $vert_last_nonblank_type; } - #-------------------------------------------------------- - # patch for =~ operator. We only align this if it - # is the first operator in a line, and the line is a simple - # statement. Aligning them within a statement - # interferes could interfere with other good alignments. - #-------------------------------------------------------- - if ( $alignment_type eq '=~' ) { - my $terminal_type = $types_to_go[$i_terminal]; - if ( $count > 0 || $max_line > 0 || $terminal_type ne ';' ) - { - $alignment_type = ""; - } - } +## #-------------------------------------------------------- +## # DEACTIVATED; DOES NOT SEEM NEEDED WITH NEW VERTICAL ALIGNER +## # patch for =~ operator. We only align this if it +## # is the first operator in a line, and the line is a simple +## # statement. Aligning them within a statement +## # could interfere with other good alignments. +## #-------------------------------------------------------- +## if ( $alignment_type eq '=~' ) { +## my $terminal_type = $types_to_go[$i_terminal]; +## if ( $count > 0 || $max_line > 0 || $terminal_type ne ';' ) +## { +## $alignment_type = ""; +## } +## } #-------------------------------------------------------- # then store the value