]> git.donarmstrong.com Git - perltidy.git/commitdiff
set tentative next release at 20220613 20220613
authorSteve Hancock <perltidy@users.sourceforge.net>
Thu, 2 Jun 2022 13:50:02 +0000 (06:50 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Thu, 2 Jun 2022 13:50:02 +0000 (06:50 -0700)
23 files changed:
CHANGES.md
bin/perltidy
docs/ChangeLog.html
docs/Tidy.html
docs/perltidy.html
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/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 9307ef2afadc874830ee2f545730a23ef837bdaf..2a8a11ee06d6ade482b9b915f636e5a9a3a671b5 100644 (file)
@@ -1,8 +1,12 @@
 # Perltidy Change Log
 
-## 2022 06 01
+## 2022 06 13
 
-    - Please note the following two significant changes in this distribution:
+    - No significant bugs have been found since the last release but users
+      of programs which call the Perl::Tidy module should note the first
+      item below, which changes a default setting.  The main change to
+      existing formatting is the second item below, which adds vertical
+      alignment to 'use' statements.
 
     - The flag --encode-output-strings, or -eos, is now set 'on' by default.
       This has no effect on the use of the 'perltidy' binary script, but could
 
       https://github.com/perltidy/perltidy/blob/master/docs/eos_flag.md
 
-    - Add vertical alignment for qw quotes and empty parens in 'use'
+    - Added vertical alignment for qw quotes and empty parens in 'use'
       statements (see issue #git 93).  This new alignment is 'on' by default
       and will change formatting as shown below. If this is not wanted it can
       be turned off with the parameter -vxl='q' (--valign-exclude-list='q').
 
-        # old default or -vxl='q'
+        # old default, or -vxl='q'
         use Getopt::Long qw(GetOptions);
         use Fcntl qw(O_RDONLY O_WRONLY O_EXCL O_CREAT);
         use Symbol qw(gensym);
         use Symbol       qw(gensym);
         use Exporter     ();
 
+    - The parameter -kbb (--keep-break-before) now ignores a request to break
+      before an opening token, such as '('.  Likewise, -kba (--keep-break-after)
+      now ignores a request to break after a closing token, such as ')'. This
+      change was made to avoid a rare instability discovered in random testing.
+
     - Previously, if a -dsc command was used to delete all side comments,
-      then any special control comments for non-indenting braces got deleted too.
-      Now, these control side comments are retained when -dsc is set unless
-      a -nnib (--nonon-indenting-braces) flag is also set to deactivate them.
+      then any special side comments for controlling non-indenting braces got
+      deleted too. Now, these control side comments are retained when -dsc is
+      set unless a -nnib (--nonon-indenting-braces) flag is also set to
+      deactivate them.
 
-    - This version runs 15 to 20 percent faster on large files than the
-      previous release due to optimizations made with the help of Devel::NYTProf.
+    - This version runs about 10 percent faster on large files than the previous
+      release due to optimizations made with the help of Devel::NYTProf.  Much
+      of the gain came from faster processing of blank tokens and comments.
 
     - This version of perltidy was stress-tested for many cpu hours with
       random input parameters. No failures to converge, internal fault checks,
       undefined variable references or other irregularities were seen.
 
-
 ## 2022 02 17
 
     - A new flag, --encode-output-strings, or -eos, has been added to resolve
index 01db44247dfe822fb6c449cc643d194adfd22213..7a5501e7e7a11f9b954901cd7149d66ab84cf719 100755 (executable)
@@ -3643,18 +3643,17 @@ parameters):
  'F' matches if 'f' does not.
  'w' matches if either 'k' or 'f' match.
  'W' matches if 'w' does not.
+ '*' always matches
 
 So for example the the following parameter will keep breaks after opening function call
 parens:
 
    perltidy -kba='f('
 
-B<NOTE>: To match all opening curly braces, and no other opening tokens, please
-prefix the brace it with an asterisk, like this: '*{'.  Otherwise a warning
-message will occur. This is necessary to avoid problems while the input scheme
-is being updated and generalized.  A single bare curly brace previously matched
-all container tokens, and tentatively still does. Likewise, to match all
-closing curly braces, and no other closing tokens, use '*}'.
+B<NOTE>: A request to break before an opening container, such as B<-kbb='('>,
+will be silently ignored because it can lead to formatting instability.
+Likewise, a request to break after a closing container, such as B<-kba>=')',
+will also be silently ignored.
 
 =item B<-iob>,  B<--ignore-old-breakpoints>
 
@@ -5168,7 +5167,7 @@ The perltidy binary uses the Perl::Tidy module and is installed when that module
 
 =head1 VERSION
 
-This man page documents perltidy version 20220601
+This man page documents perltidy version 20220613
 
 =head1 BUG REPORTS
 
index 09e1439366a20da2e193f5f6b88b6c01cb4fd347..90acabb91760022156edbdd57c14fa8b6f44d017 100644 (file)
@@ -1,8 +1,12 @@
 <h1>Perltidy Change Log</h1>
 
-<h2>2022 06 01</h2>
+<h2>2022 06 13</h2>
 
-<pre><code>- Please note the following two significant changes in this distribution:
+<pre><code>- No significant bugs have been found since the last release but users
+  of programs which call the Perl::Tidy module should note the first
+  item below, which changes a default setting.  The main change to
+  existing formatting is the second item below, which adds vertical
+  alignment to 'use' statements.
 
 - The flag --encode-output-strings, or -eos, is now set 'on' by default.
   This has no effect on the use of the 'perltidy' binary script, but could
 
   https://github.com/perltidy/perltidy/blob/master/docs/eos_flag.md
 
-- Add vertical alignment for qw quotes and empty parens in 'use'
+- Added vertical alignment for qw quotes and empty parens in 'use'
   statements (see issue #git 93).  This new alignment is 'on' by default
   and will change formatting as shown below. If this is not wanted it can
   be turned off with the parameter -vxl='q' (--valign-exclude-list='q').
 
-    # old default or -vxl='q'
+    # old default, or -vxl='q'
     use Getopt::Long qw(GetOptions);
     use Fcntl qw(O_RDONLY O_WRONLY O_EXCL O_CREAT);
     use Symbol qw(gensym);
     use Symbol       qw(gensym);
     use Exporter     ();
 
-- Previously, if a -dsc command was used to delete all side comments,
-  then any special control comments for non-indenting braces got deleted too.
-  Now, these control side comments are retained when -dsc is set unless
-  a -nnib (--nonon-indenting-braces) flag is also set to deactivate them.
+- The parameter -kbb (--keep-break-before) now ignores a request to break
+  before an opening token, such as '('.  Likewise, -kba (--keep-break-after)
+  now ignores a request to break after a closing token, such as ')'. This
+  change was made to avoid a rare instability discovered in random testing.
 
-- This version runs 15 to 20 percent faster on large files than the
-  previous release due to optimizations made with the help of Devel::NYTProf.
+- Previously, if a -dsc command was used to delete all side comments,
+  then any special side comments for controlling non-indenting braces got
+  deleted too. Now, these control side comments are retained when -dsc is
+  set unless a -nnib (--nonon-indenting-braces) flag is also set to
+  deactivate them.
+
+- This version runs about 10 percent faster on large files than the previous
+  release due to optimizations made with the help of Devel::NYTProf.  Much
+  of the gain came from faster processing of blank tokens and comments.
 
 - This version of perltidy was stress-tested for many cpu hours with
   random input parameters. No failures to converge, internal fault checks,
index afe49e59a7d73158271bed311d90d25f83a49522..ae33f1d7eb6c96a96db0aefbe109e5f89ea3a2d4 100644 (file)
 
 <h1 id="VERSION">VERSION</h1>
 
-<p>This man page documents Perl::Tidy version 20220601</p>
+<p>This man page documents Perl::Tidy version 20220613</p>
 
 <h1 id="LICENSE">LICENSE</h1>
 
index 93ef500567ea800e823971a3204fc5e2adf7ec97..a9923d3a6f3e78e658883687fb43ba92cc5e7e76 100644 (file)
  &#39;f&#39; matches if the previous token is a function other than a keyword.
  &#39;F&#39; matches if &#39;f&#39; does not.
  &#39;w&#39; matches if either &#39;k&#39; or &#39;f&#39; match.
- &#39;W&#39; matches if &#39;w&#39; does not.</code></pre>
+ &#39;W&#39; matches if &#39;w&#39; does not.
+ &#39;*&#39; always matches</code></pre>
 
 <p>So for example the the following parameter will keep breaks after opening function call parens:</p>
 
 <pre><code>   perltidy -kba=&#39;f(&#39;</code></pre>
 
-<p><b>NOTE</b>: To match all opening curly braces, and no other opening tokens, please prefix the brace it with an asterisk, like this: &#39;*{&#39;. Otherwise a warning message will occur. This is necessary to avoid problems while the input scheme is being updated and generalized. A single bare curly brace previously matched all container tokens, and tentatively still does. Likewise, to match all closing curly braces, and no other closing tokens, use &#39;*}&#39;.</p>
+<p><b>NOTE</b>: A request to break before an opening container, such as <b>-kbb=&#39;(&#39;</b>, will be silently ignored because it can lead to formatting instability. Likewise, a request to break after a closing container, such as <b>-kba</b>=&#39;)&#39;, will also be silently ignored.</p>
 
 </dd>
 <dt id="iob---ignore-old-breakpoints"><b>-iob</b>, <b>--ignore-old-breakpoints</b></dt>
 
 <h1 id="VERSION">VERSION</h1>
 
-<p>This man page documents perltidy version 20220601</p>
+<p>This man page documents perltidy version 20220613</p>
 
 <h1 id="BUG-REPORTS">BUG REPORTS</h1>
 
index 4418ede619416cbb34eff47056afa815547ec963..211b8ad7d6c14a3c0f62856f975402b222e622ff 100644 (file)
@@ -113,7 +113,7 @@ BEGIN {
     # Release version must be bumped, and it is probably past time for a
     # release anyway.
 
-    $VERSION = '20220601';
+    $VERSION = '20220613';
 }
 
 sub DESTROY {
index 311bf17402e764abec37a40b104d7e6fcdd7ac29..bbb6bfe466d676346d5da9ffcfb667c4622c55cd 100644 (file)
@@ -475,7 +475,7 @@ The module 'Perl::Tidy' comes with a binary 'perltidy' which is installed when t
 
 =head1 VERSION
 
-This man page documents Perl::Tidy version 20220601
+This man page documents Perl::Tidy version 20220613
 
 =head1 LICENSE
 
index a9150cb221a45ce92be913e90760385bf51b46bb..5227325d7329d4bf6452d09f1b6eb33cbdc6f64e 100644 (file)
@@ -8,7 +8,7 @@ package Perl::Tidy::Debugger;
 use strict;
 use warnings;
 use English qw( -no_match_vars );
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 
 use constant EMPTY_STRING => q{};
 use constant SPACE        => q{ };
index 46ae3ba3f7b822a19fb75e8d34e5c25d5921937c..daa63da670b7d2e5deec035f12d3784b7bb86928 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::DevNull;
 use strict;
 use warnings;
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 sub new   { my $self = shift; return bless {}, $self }
 sub print { return }
 sub close { return }
index 747653728a62e0ba206c0a010c69761eec04cab4..af81a0cfc3be11ee5ef8c243f8ff691306da712f 100644 (file)
@@ -21,7 +21,7 @@ package Perl::Tidy::Diagnostics;
 use strict;
 use warnings;
 use English qw( -no_match_vars );
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 
 use constant EMPTY_STRING => q{};
 
index 1c351bceef547d0af428c380f442de414dec3c0e..f16a41126c341c6ed0138ee18a8efa418f41955b 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::FileWriter;
 use strict;
 use warnings;
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 
 use constant DEVEL_MODE   => 0;
 use constant EMPTY_STRING => q{};
index b63e0dd2f2ad01663c28b27c23cc09a2942e7a0c..ac1abb2ba25cd0bf6ea1953069e9693fc6a3d449 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::HtmlWriter;
 use strict;
 use warnings;
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 
 use English qw( -no_match_vars );
 use File::Basename;
index d2d2d3baedadab381e08f192b8e1989b05002d9f..d74960f69ca35c20c9ea053ae8a14e7c161ada6a 100644 (file)
@@ -10,7 +10,7 @@ package Perl::Tidy::IOScalar;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 
 use constant EMPTY_STRING => q{};
 
index 59c45ec5b12fb1ffc770e120ea5b5a43acce5e20..6f9f768ed1e95dd62462e4a5c2c3734ef5dcca33 100644 (file)
@@ -14,7 +14,7 @@ package Perl::Tidy::IOScalarArray;
 use strict;
 use warnings;
 use Carp;
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 
 sub AUTOLOAD {
 
index 6f091590d043d6ac35a5976f9bc6712da637f87c..635eb296759568b0e4bdd3cafc414db1f376e8b9 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::IndentationItem;
 use strict;
 use warnings;
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 
 BEGIN {
 
index 773492c576c528ce42d3376f1329252b6d20ecca..bdd51a5174aa5e919e9f9722e70951eb28f6b8b6 100644 (file)
@@ -12,7 +12,7 @@
 package Perl::Tidy::LineBuffer;
 use strict;
 use warnings;
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 
 sub AUTOLOAD {
 
index 780573f08c9d5e12330d4a40494eaa1900af4a3c..ae0bfd20133dccdb443cace95b8f34a894c20b20 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::LineSink;
 use strict;
 use warnings;
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 
 sub AUTOLOAD {
 
index a81058912f08deedfc690768ded14219ac98bd33..3306d6b2d4f4f58ba8abe3a923a45cadaa455212 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::LineSource;
 use strict;
 use warnings;
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 
 sub AUTOLOAD {
 
index bdd5aaac4c075f87a500115db6990489467a97a9..194ca81c7e3a4f824f1451b0096fad44b107fc40 100644 (file)
@@ -7,7 +7,7 @@
 package Perl::Tidy::Logger;
 use strict;
 use warnings;
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 use English qw( -no_match_vars );
 
 use constant EMPTY_STRING => q{};
index 95f882550b89cd4164fbd2ada0892a135134dad1..be828299e7b9bc3ad7b0ea0b84f7ddf6e5d8fdb3 100644 (file)
@@ -23,7 +23,7 @@ use strict;
 use warnings;
 use English qw( -no_match_vars );
 
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 
 use constant DEVEL_MODE   => 0;
 use constant EMPTY_STRING => q{};
index 1b87384cd12e528d38a8679795cd33eed71c0d81..a5b2245a8a0f3ec6c73f79b662a603ca36e9e196 100644 (file)
@@ -3,7 +3,7 @@ use strict;
 use warnings;
 use Carp;
 use English qw( -no_match_vars );
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 use Perl::Tidy::VerticalAligner::Alignment;
 use Perl::Tidy::VerticalAligner::Line;
 
index 5ecfa1c6c64af63558da9955dbdcef0e164b5f8b..078689bb312166ba32caa1a6fd83c64831024ec9 100644 (file)
@@ -10,7 +10,7 @@ use warnings;
 
 { #<<< A non-indenting brace
 
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 
 BEGIN {
 
index 0b5063bc2e69c02ca27f51d25255e8cbb45dd2be..ab679de33a15ff3cd66e9fe05fd127529d118918 100644 (file)
@@ -8,7 +8,7 @@
 package Perl::Tidy::VerticalAligner::Line;
 use strict;
 use warnings;
-our $VERSION = '20220601';
+our $VERSION = '20220613';
 
 BEGIN {