# Perltidy Change Log
+## 2020 01 10.01
+
+ - Fix for git#18, added warning for missing comma before unknown bare word.
+
## 2020 01 10
- This release adds a flag to control the feature RT#130394 (allow short nested blocks)
=head1 VERSION
-This man page documents perltidy version 20200110
+This man page documents perltidy version 20200110.01
=head1 BUG REPORTS
# Release version must be bumped, and it is probably past time for a
# release anyway.
- $VERSION = '20200110';
+ $VERSION = '20200110.01';
}
sub streamhandle {
=head1 VERSION
-This man page documents Perl::Tidy version 20200110
+This man page documents Perl::Tidy version 20200110.01
=head1 LICENSE
package Perl::Tidy::Debugger;
use strict;
use warnings;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
sub new {
package Perl::Tidy::DevNull;
use strict;
use warnings;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
sub new { my $self = shift; return bless {}, $self }
sub print { return }
sub close { return }
package Perl::Tidy::Diagnostics;
use strict;
use warnings;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
sub new {
package Perl::Tidy::FileWriter;
use strict;
use warnings;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
# Maximum number of little messages; probably need not be changed.
my $MAX_NAG_MESSAGES = 6;
use strict;
use warnings;
use Carp;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
# The Tokenizer will be loaded with the Formatter
##use Perl::Tidy::Tokenizer; # for is_keyword()
package Perl::Tidy::HtmlWriter;
use strict;
use warnings;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
use File::Basename;
use strict;
use warnings;
use Carp;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
sub new {
my ( $package, $rscalar, $mode ) = @_;
use strict;
use warnings;
use Carp;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
sub new {
my ( $package, $rarray, $mode ) = @_;
package Perl::Tidy::IndentationItem;
use strict;
use warnings;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
sub new {
package Perl::Tidy::LineBuffer;
use strict;
use warnings;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
sub new {
package Perl::Tidy::LineSink;
use strict;
use warnings;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
sub new {
package Perl::Tidy::LineSource;
use strict;
use warnings;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
sub new {
package Perl::Tidy::Logger;
use strict;
use warnings;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
sub new {
package Perl::Tidy::Tokenizer;
use strict;
use warnings;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
use Perl::Tidy::LineBuffer;
}
{
- my %pattern_test;
+ my %pattern_test;
BEGIN {
- # list of tokens which may follow a pattern
- # (can probably be expanded)
- # Note that we will not have formed binaries at this point, so we will
- # see '&' instead of '&&' and '|' instead of '||'
+ # List of tokens which may follow a pattern. Note that we will not
+ # have formed digraphs at this point, so we will see '&' instead of
+ # '&&' and '|' instead of '||'
- # /(\)|\}|\;|\&\&|\|\||and|or|while|if|unless)/ )
- my @q = qw( & && | || and or while if unless);
- push @q, ')', '}', ',', ';';
+ # /(\)|\}|\;|\&\&|\|\||and|or|while|if|unless)/
+ my @q = qw( & && | || ? : + - * and or while if unless);
+ push @q, ')', '}', ']', '>', ',', ';';
@{pattern_test}{@q} = (1) x scalar(@q);
}
my ( $next_nonblank_token, $i_next ) =
find_next_nonblank_token( $i, $rtokens, $max_token_index );
- if ( $pattern_test{$next_nonblank_token} ) {
+ if ( $pattern_test{$next_nonblank_token} ) {
$is_pattern = 1;
}
else {
package Perl::Tidy::VerticalAligner;
use strict;
use warnings;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
use Perl::Tidy::VerticalAligner::Alignment;
use Perl::Tidy::VerticalAligner::Line;
package Perl::Tidy::VerticalAligner::Alignment;
use strict;
use warnings;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
{
package Perl::Tidy::VerticalAligner::Line;
use strict;
use warnings;
-our $VERSION = '20200110';
+our $VERSION = '20200110.01';
{