]> git.donarmstrong.com Git - perltidy.git/commitdiff
bump version to .02 20201001.02
authorSteve Hancock <perltidy@users.sourceforge.net>
Mon, 12 Oct 2020 00:17:15 +0000 (17:17 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Mon, 12 Oct 2020 00:17:15 +0000 (17:17 -0700)
21 files changed:
CHANGES.md
bin/perltidy
lib/Perl/Tidy.pm
lib/Perl/Tidy.pod
lib/Perl/Tidy/Debugger.pm
lib/Perl/Tidy/DevNull.pm
lib/Perl/Tidy/Diagnostics.pm
lib/Perl/Tidy/FileWriter.pm
lib/Perl/Tidy/Formatter.pm
lib/Perl/Tidy/HtmlWriter.pm
lib/Perl/Tidy/IOScalar.pm
lib/Perl/Tidy/IOScalarArray.pm
lib/Perl/Tidy/IndentationItem.pm
lib/Perl/Tidy/LineBuffer.pm
lib/Perl/Tidy/LineSink.pm
lib/Perl/Tidy/LineSource.pm
lib/Perl/Tidy/Logger.pm
lib/Perl/Tidy/Tokenizer.pm
lib/Perl/Tidy/VerticalAligner.pm
lib/Perl/Tidy/VerticalAligner/Alignment.pm
lib/Perl/Tidy/VerticalAligner/Line.pm

index 60e04b7cd8d5d13cec76535b98db6b0d8172dd56..ac51718fce7eef49f9aa52f0cda841e2ff58936a 100644 (file)
@@ -1,6 +1,6 @@
 # Perltidy Change Log
 
-## 2020 10 01.01
+## 2020 10 01.02
 
     - Add flag -xci, --extended-continuation-indentation, regarding issue git #28
 
index 13d56ffc8dee1e9a64a05705915ae50670ad2c84..4c4d1c2c2fa9f344cc6c21eb587fdabef3121fa4 100755 (executable)
@@ -4352,7 +4352,7 @@ The perltidy binary uses the Perl::Tidy module and is installed when that module
 
 =head1 VERSION
 
-This man page documents perltidy version 20201001.01
+This man page documents perltidy version 20201001.02
 
 =head1 BUG REPORTS
 
index acff7509045b0879402ba0f1410fb285e01046bc..3a8c35e93b4e532ad6e5c28328ba64350616d9fa 100644 (file)
@@ -107,7 +107,7 @@ BEGIN {
     # Release version must be bumped, and it is probably past time for a
     # release anyway.
 
-    $VERSION = '20201001.01';
+    $VERSION = '20201001.02';
 }
 
 sub DESTROY {
index 7365238b5c75f3492705bbfb0e7080c6b7ba1dc7..b4a2799865a4a2b87afc6b6c02c8f157b7526e29 100644 (file)
@@ -432,7 +432,7 @@ The module 'Perl::Tidy' comes with a binary 'perltidy' which is installed when t
 
 =head1 VERSION
 
-This man page documents Perl::Tidy version 20201001.01
+This man page documents Perl::Tidy version 20201001.02
 
 =head1 LICENSE
 
index 3362de598104915fd28982be98a4657e9766ae22..007538f22175e6f7f835ac2dddd06c4beb451571 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::Debugger;
 use strict;
 use warnings;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 sub new {
 
index a17fe9741dd693d1f50a8ef53f8bbc3fe40e1df5..c0bd13bf724a1a2337e6335d3ef7bb77c1351414 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::DevNull;
 use strict;
 use warnings;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 sub new   { my $self = shift; return bless {}, $self }
 sub print { return }
 sub close { return }
index 901d33c26f452f7bceefbfa14c9f845674b32325..6b9dd50c71389c9d8711b03d38a50bf2e1a4d441 100644 (file)
@@ -20,7 +20,7 @@
 package Perl::Tidy::Diagnostics;
 use strict;
 use warnings;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 sub AUTOLOAD {
 
@@ -28,7 +28,7 @@ sub AUTOLOAD {
     # some diagnostic information.  This sub should never be called
     # except for a programming error.
     our $AUTOLOAD;
-    return if ( $AUTOLOAD =~/\bDESTROY$/ );
+    return if ( $AUTOLOAD =~ /\bDESTROY$/ );
     my ( $pkg, $fname, $lno ) = caller();
     print STDERR <<EOM;
 ======================================================================
index 647ac4ec535c01590633362f0694381eaeae26cb..31f02cdf2158b107f3a986d2f7328564f7106886 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::FileWriter;
 use strict;
 use warnings;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 sub AUTOLOAD {
 
index b03ec6bfbc93d7d8b4a32a45e8576c563630371c..9bdeff85bfba69f4808125e3d2f4f8836bb54c72 100644 (file)
@@ -49,7 +49,7 @@ use constant DEVEL_MODE => 0;
 { #<<< A non-indenting brace to contain all lexical variables
 
 use Carp;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 # The Tokenizer will be loaded with the Formatter
 ##use Perl::Tidy::Tokenizer;    # for is_keyword()
@@ -6893,6 +6893,14 @@ sub extended_ci {
         my $KK = $KNEXT;
         $KNEXT = $rLL->[$KNEXT]->[_KNEXT_SEQ_ITEM_];
 
+        my $seqno     = $rLL->[$KK]->[_TYPE_SEQUENCE_];
+        my $K_opening = $K_opening_container->{$seqno};
+
+        # see if we have reached the end of the current controlling container
+        if ( $seqno_top && $seqno == $seqno_top ) {
+            $seqno_top = pop @seqno_stack;
+        }
+
         # Patch to fix some block types...
         # Certain block types arrive from the tokenizer without CI but should
         # have it for this option.  These include anonymous subs and
@@ -6900,14 +6908,10 @@ sub extended_ci {
         my $block_type = $rLL->[$KK]->[_BLOCK_TYPE_];
         if ( $block_type && $is_block_with_ci{$block_type} ) {
             $rLL->[$KK]->[_CI_LEVEL_] = 1;
-        }
-
-        # see if we have reached the end of the current controlling container
-        my $seqno = $rLL->[$KK]->[_TYPE_SEQUENCE_];
-        if ( $seqno_top && $seqno == $seqno_top ) {
-            ## $rLL->[$KK]->[_CI_LEVEL_] = 1;  ## should not be necessary
-            $seqno_top = pop @seqno_stack;
-            next;
+            if ($seqno_top) {
+                $rseqno_which_extended_ci->{$KK} = $seqno_top;
+                $ris_seqno_controlling_ci->{$seqno_top}++;
+            }
         }
 
         # If this does not have ci, update ci if necessary and continue looking
@@ -6921,7 +6925,6 @@ sub extended_ci {
         }
 
         # We are looking for opening container tokens with ci
-        my $K_opening = $K_opening_container->{$seqno};
         next unless ( defined($K_opening) && $KK == $K_opening );
 
         # Make sure there is a corresponding closing container
@@ -17795,11 +17798,11 @@ sub make_paren_name {
         # options that the user has set regarding special indenting and
         # outdenting.
 
-       # This routine is mainly concerned with outdenting closing tokens but
-       # has become a 'catchall' for a variety of special problems involving
-       # ci.  Note that there is some overlap with the functions of sub
-       # undo_ci, which was processed earlier, so care has to be taken to keep
-       # them coordinated.
+        # This routine is mainly concerned with outdenting closing tokens but
+        # has become a 'catchall' for a variety of special problems involving
+        # ci.  Note that there is some overlap with the functions of sub
+        # undo_ci, which was processed earlier, so care has to be taken to keep
+        # them coordinated.
 
         my (
             $self,       $ibeg,
@@ -18004,10 +18007,8 @@ sub make_paren_name {
 
                     # and do not undo ci if it was set by the -xci option
                     $adjust_indentation = 1
-                      if (
-                        $level_next < $lev
-                        && !$rseqno_which_extended_ci->{$K_beg}
-                      );
+                      if ( $level_next < $lev
+                        && !$rseqno_which_extended_ci->{$K_beg} );
                 }
 
                 # Patch for RT #96101, in which closing brace of anonymous subs
index 2fe50ad88e11f7b61007ac1a5e51b318c6afaf95..f745f3d99deeeed212d03b2c0e0959e1cca6cd02 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::HtmlWriter;
 use strict;
 use warnings;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 use File::Basename;
 
@@ -44,7 +44,7 @@ sub AUTOLOAD {
     # some diagnostic information.  This sub should never be called
     # except for a programming error.
     our $AUTOLOAD;
-    return if ( $AUTOLOAD =~/\bDESTROY$/ );
+    return if ( $AUTOLOAD =~ /\bDESTROY$/ );
     my ( $pkg, $fname, $lno ) = caller();
     print STDERR <<EOM;
 ======================================================================
index 874c57ab5d52e14f44aa9754969b70ec3d559428..5d5737dec133e532cd967bc708d266db4afeab61 100644 (file)
@@ -10,7 +10,7 @@ package Perl::Tidy::IOScalar;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 sub AUTOLOAD {
 
@@ -18,7 +18,7 @@ sub AUTOLOAD {
     # some diagnostic information.  This sub should never be called
     # except for a programming error.
     our $AUTOLOAD;
-    return if ( $AUTOLOAD =~/\bDESTROY$/ );
+    return if ( $AUTOLOAD =~ /\bDESTROY$/ );
     my ( $pkg, $fname, $lno ) = caller();
     print STDERR <<EOM;
 ======================================================================
index df23191732449b17955c6e79af26f4de4657df9b..8ecbc39a555929c114a489c4d443866faa1fe2ef 100644 (file)
@@ -14,7 +14,7 @@ package Perl::Tidy::IOScalarArray;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 sub AUTOLOAD {
 
@@ -22,7 +22,7 @@ sub AUTOLOAD {
     # some diagnostic information.  This sub should never be called
     # except for a programming error.
     our $AUTOLOAD;
-    return if ( $AUTOLOAD =~/\bDESTROY$/ );
+    return if ( $AUTOLOAD =~ /\bDESTROY$/ );
     my ( $pkg, $fname, $lno ) = caller();
     print STDERR <<EOM;
 ======================================================================
index 85e77c02c2448814df61ec4268ef264346527e78..bf7f1ced0514bb2705aa089b7141f10bda343d33 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::IndentationItem;
 use strict;
 use warnings;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 BEGIN {
 
index bb5ebdd0daaf969cbdcf49caea3549d5e8c45121..065635ef972751394926ed81a00c46e622d66c91 100644 (file)
@@ -12,7 +12,7 @@
 package Perl::Tidy::LineBuffer;
 use strict;
 use warnings;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 sub AUTOLOAD {
 
@@ -20,7 +20,7 @@ sub AUTOLOAD {
     # some diagnostic information.  This sub should never be called
     # except for a programming error.
     our $AUTOLOAD;
-    return if ( $AUTOLOAD =~/\bDESTROY$/ );
+    return if ( $AUTOLOAD =~ /\bDESTROY$/ );
     my ( $pkg, $fname, $lno ) = caller();
     print STDERR <<EOM;
 ======================================================================
index 6c701d872c8aee3881253c8b34a214faf05c638c..79d717fc361c5861544e05d28523bcb463c2ea0d 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::LineSink;
 use strict;
 use warnings;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 sub AUTOLOAD {
 
@@ -16,7 +16,7 @@ sub AUTOLOAD {
     # some diagnostic information.  This sub should never be called
     # except for a programming error.
     our $AUTOLOAD;
-    return if ( $AUTOLOAD =~/\bDESTROY$/ );
+    return if ( $AUTOLOAD =~ /\bDESTROY$/ );
     my ( $pkg, $fname, $lno ) = caller();
     print STDERR <<EOM;
 ======================================================================
index 43b605fff48c620e5664ba7fc787ab230bc0df87..b2ab9833d0d586cd5f9a5f1e54e6134afe24c5e5 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::LineSource;
 use strict;
 use warnings;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 sub AUTOLOAD {
 
@@ -16,7 +16,7 @@ sub AUTOLOAD {
     # some diagnostic information.  This sub should never be called
     # except for a programming error.
     our $AUTOLOAD;
-    return if ( $AUTOLOAD =~/\bDESTROY$/ );
+    return if ( $AUTOLOAD =~ /\bDESTROY$/ );
     my ( $pkg, $fname, $lno ) = caller();
     print STDERR <<EOM;
 ======================================================================
index fbbbfc84c1f39bb6cd98f2d585e421cce64e84f3..e6d26844115206972f520c3e1dea0e2a3bcc7682 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::Logger;
 use strict;
 use warnings;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 sub AUTOLOAD {
 
@@ -15,7 +15,7 @@ sub AUTOLOAD {
     # some diagnostic information.  This sub should never be called
     # except for a programming error.
     our $AUTOLOAD;
-    return if ( $AUTOLOAD =~/\bDESTROY$/ );
+    return if ( $AUTOLOAD =~ /\bDESTROY$/ );
     my ( $pkg, $fname, $lno ) = caller();
     print STDERR <<EOM;
 ======================================================================
index ab13c6ee1365dc7a31cc16b8781941b040d5882b..d1a988989176fce2587b502b2f6580ef5e574e5b 100644 (file)
@@ -21,7 +21,7 @@
 package Perl::Tidy::Tokenizer;
 use strict;
 use warnings;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 use Perl::Tidy::LineBuffer;
 use Carp;
@@ -188,7 +188,7 @@ sub AUTOLOAD {
     # some diagnostic information.  This sub should never be called
     # except for a programming error.
     our $AUTOLOAD;
-    return if ( $AUTOLOAD =~/\bDESTROY$/ );
+    return if ( $AUTOLOAD =~ /\bDESTROY$/ );
     my ( $pkg, $fname, $lno ) = caller();
     print STDERR <<EOM;
 ======================================================================
@@ -4003,7 +4003,7 @@ EOM
 
                 if ( $level_in_tokenizer > $tokenizer_self->[_maximum_level_] )
                 {
-                    $tokenizer_self->[ _maximum_level_ ] = $level_in_tokenizer;
+                    $tokenizer_self->[_maximum_level_] = $level_in_tokenizer;
                 }
 
                 if ($forced_indentation_flag) {
index 05ba52d49efe89f18c80df3bd99db8d7aa9ae950..79d94ecfb480747a887c8bfee13fd9e405d15bc9 100644 (file)
@@ -1,7 +1,7 @@
 package Perl::Tidy::VerticalAligner;
 use strict;
 use warnings;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 use Perl::Tidy::VerticalAligner::Alignment;
 use Perl::Tidy::VerticalAligner::Line;
@@ -60,7 +60,7 @@ sub AUTOLOAD {
     # some diagnostic information.  This sub should never be called
     # except for a programming error.
     our $AUTOLOAD;
-    return if ( $AUTOLOAD =~/\bDESTROY$/ );
+    return if ( $AUTOLOAD =~ /\bDESTROY$/ );
     my ( $pkg, $fname, $lno ) = caller();
     print STDERR <<EOM;
 ======================================================================
@@ -3870,7 +3870,7 @@ sub combine_fields {
 
 sub get_output_line_number {
 
-    # The output line number reported to a caller = 
+    # The output line number reported to a caller =
     # the number of items still in the buffer +
     # the number of items written.
     return $_[0]->group_line_count() +
index 3d79829f3a5b5c6d265637d95a881dfd4c90b2c1..08afc5177ff3a370dead594f5b2d0b99a8b283ff 100644 (file)
@@ -10,7 +10,7 @@ use warnings;
 
 { #<<< A non-indenting brace
 
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 #    _column_          # the current column number
 #    _starting_column_ # column number when created
index f35ecf3bf01d75947f3197fcd6cffa33090a4791..800ac8921a22dbf8df4b7858c84c26c2865a125c 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::VerticalAligner::Line;
 use strict;
 use warnings;
-our $VERSION = '20201001.01';
+our $VERSION = '20201001.02';
 
 BEGIN {
     my $i = 0;
@@ -77,7 +77,7 @@ BEGIN {
         # some diagnostic information.  This sub should never be called
         # except for a programming error.
         our $AUTOLOAD;
-        return if ( $AUTOLOAD =~/\bDESTROY$/ );
+        return if ( $AUTOLOAD =~ /\bDESTROY$/ );
         my ( $pkg, $fname, $lno ) = caller();
         print STDERR <<EOM;
     ======================================================================