From 8df6c730dd45c93f2d42e749083e73ecf9dda8a6 Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Fri, 15 Apr 2022 14:09:50 -0700 Subject: [PATCH] add alignment for use ... qw (see issue git #93) --- lib/Perl/Tidy/Formatter.pm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/Perl/Tidy/Formatter.pm b/lib/Perl/Tidy/Formatter.pm index bd7cdd21..637ff526 100644 --- a/lib/Perl/Tidy/Formatter.pm +++ b/lib/Perl/Tidy/Formatter.pm @@ -22795,6 +22795,13 @@ EOM } } + # align qw in a 'use' statement (issue git #93) + elsif ( $type eq 'q' ) { + if ( $types_to_go[0] eq 'k' && $tokens_to_go[0] eq 'use' ) { + $alignment_type = $type; + } + } + # align before one of these types.. elsif ( $is_vertical_alignment_type{$type} && !$is_not_vertical_alignment_token{$token} ) -- 2.39.5