--indent-columns=8
--maximum-line-length=54
+==> b1315.in <==
+# S1
+our %EXPORT_TAGS
+ = (
+ 'all' => [
+ qw(
+
+ )
+ ]
+ );
+
+# S2
+our %EXPORT_TAGS
+ = (
+ 'all' => [
+ qw(
+
+ ) ]
+ );
+
+
+==> b1315.par <==
+--closing-brace-indentation=2
+--continuation-indentation=8
+--extended-line-up-parentheses
+--indent-columns=1
+--maximum-line-length=18
+--stack-closing-square-bracket
+--variable-maximum-line-length
+
+==> b1316.in <==
+# S1
+$garage->add_path(
+ qw( move_car move_LPs move_sofa
+ hoover_floor wash_floor )
+);
+
+# S2
+$garage->add_path(
+ qw( move_car move_LPs move_sofa
+ hoover_floor wash_floor ));
+
+==> b1316.par <==
+--continuation-indentation=9
+--delete-old-whitespace
+--extended-line-up-parentheses
+--maximum-line-length=44
+--paren-tightness=2
+--paren-vertical-tightness-closing=2
+
==> b140.in <==
$cmd[ $i ]=[
$s, $e, $cmd, \@hunk, $i ] ;
$source_object->close_input_file();
}
+ #------------------------------------------------------------------
+ # For string output, store the result to the destination, encoding
+ # if requested. This is a fix for issue git #83 (tidyall issue)
+ #------------------------------------------------------------------
if ($use_destination_buffer) {
- #------------------------------------------------------------------
- # For string output, store the result to the destination, encoding
- # if appropriate. This is a fix for issue git #83 (tidyall issue)
- #------------------------------------------------------------------
-
# At this point, all necessary encoding has been done except for
# output to a string or array ref. We use the -eos flag to decide
# if we should encode.
$rkeep_break_hash->{'('} = 1;
$rkeep_break_hash->{'['} = 1;
Warn(<<EOM);
-Sorry, but the format for the -kbb and -kba flags for container tokens is
-changing for consistency with other parameters. You entered '{' which
-currently matches '{' '(' and '[', but in the future it will only match '{'.
+Sorry, but the format for the -kbb and -kba flags is changing a little.
+You entered '{' which currently matches '{' '(' and '[',
+but in the future it will only match '{'.
To prevent this message please do one of the following:
use '{ ( [' if you want to match all opening containers, or
use '(' or '[' to match just those containers, or
$rkeep_break_hash->{'('} = 1;
$rkeep_break_hash->{'['} = 1;
Warn(<<EOM);
-Sorry, but the format for the -kbb and -kba flags for container tokens is changing a
-little to allow generalization and for consistency with other parameters. You entered '}'
-which currently still matches '}' ')' and ']', but in the future it will only match '}'.
+Sorry, but the format for the -kbb and -kba flags is changing a little.
+You entered '}' which currently matches each of '}' ')' and ']',
+but in the future it will only match '}'.
To prevent this message please do one of the following:
use '} ) ]' if you want to match all closing containers, or
use ')' or ']' to match just those containers, or
# Handle an intermediate line of a multiline qw quote. These may
# require including some -ci or -i spaces. See cases c098/x063.
- if ( $K_first == $K_last && $rLL->[$K_first]->[_TYPE_] eq 'q' ) {
+ # Updated to check all lines (not just $K_first==$K_last) to fix b1316
+ my $K_begin_loop = $K_first;
+ if ( $rLL->[$K_first]->[_TYPE_] eq 'q' ) {
my $KK = $K_first;
my $level = $rLL->[$KK]->[_LEVEL_];
if ( $len > $max_prong_len ) { $max_prong_len = $len }
- # We can skip the loop over tokens below
$last_nonblank_type = 'q';
- next;
+
+ $K_begin_loop = $K_first + 1;
+
+ # We can skip to the next line if more tokens
+ next if ( $K_begin_loop > $K_last );
+
}
$K_start_multiline_qw = undef;
}
# Loop over tokens on this line ...
- foreach my $KK ( $K_first .. $K_terminal ) {
+ foreach my $KK ( $K_begin_loop .. $K_terminal ) {
my $type = $rLL->[$KK]->[_TYPE_];
next if ( $type eq 'b' );