$last_nonblank_line = $truncate->( $last_nonblank_line, 72 );
if ($last_nonblank_line) {
- my $countm = $counti - 1;
$msg .= <<EOM;
$last_nonblank_count:$last_nonblank_line
EOM
# See rules in perltidy's perldoc page
# Section: Other Controls - Creating a new abbreviation
if ( $line =~ /^((\w+)\s*\{)(.*)?$/ ) {
- my $oldname = $name;
( $name, $body ) = ( $2, $3 );
# Cannot start new abbreviation unless old abbreviation is complete
my $K_closing_container = $self->[_K_closing_container_];
my @package_list;
my @package_sweep;
- my $lx_max = $rLL->[$Klimit]->[_LINE_INDEX_];
foreach my $KK ( 0 .. $Klimit ) {
my $item = $rLL->[$KK];
my $type = $item->[_TYPE_];
next unless ( $is_list || $has_list && $has_list == 1 );
- my $has_broken_list = $rhas_broken_list->{$seqno};
my $has_list_with_lec = $rhas_broken_list_with_lec->{$seqno};
# Only for types of container tokens with a non-default break option
# Loop over the batch to initialize some batch variables
#-------------------------------------------------------
my $comma_count_in_batch = 0;
- my $ilast_nonblank = -1;
my @colon_list;
my @ix_seqno_controlling_ci;
my %comma_arrow_count;
my $summed_len_2 = $summed_lengths_to_go[ $iend_2 + 1 ] -
$summed_lengths_to_go[$ibeg_2];
my $iend_1_minus = max( $ibeg_1, iprev_to_go($iend_1) );
- my $ibeg_2_plus = min( $iend_2, $inext_to_go[$iend_2] );
return
unless (
my ($self) = @_;
my $warning_count = $self->{_warning_count};
- my $saw_code_bug = $self->{_saw_code_bug};
my $save_logfile = $self->{_save_logfile};
my $log_file = $self->{_log_file};
# _in_skipped_
# _in_pod_
# _in_quote_
- my $ending_in_quote_last = $self->[_in_quote_];
$self->tokenize_this_line($line_of_tokens);
# Now finish defining the return structure and return it
foreach my $k ( $j + 1 .. @pre_types - 2 ) {
if ( $pre_types[$k] eq $quote_mark ) {
$j = $k + 1;
- my $next = $pre_types[$j];
+ ##my $next = $pre_types[$j];
last;
}
}
) = @_;
- my $in_quote_starting = $in_quote;
-
my $quoted_string;
if ( $in_quote == 2 ) { # two quotes/quoted_string_1s to follow
my $ibeg = $i;
$rtoken_patterns->{$lev_max} = $token_pattern_max;
$rtoken_indexes->{$lev_max} = [ ( 0 .. $imax ) ];
- my $debug = 0;
my $lev_top = pop @levs; # alread did max level
my $itok = -1;
foreach my $tok ( @{$rtokens} ) {
# $ragged_comma_group{$id} = [ imax_group_min, imax_group_max ]
## my %ragged_comma_group;
- # Define a threshold line count for forcing a break
- my $nlines_break = 3;
-
# We work with a list of nodes to visit at the next deeper depth.
my @todo_list;
if ( defined( $match_tree[0] ) ) {