# For example, ?: pairs might have numbers 7,11,15,...
use constant TYPE_SEQUENCE_INCREMENT => 4;
-{
+{ ## closure for subs to count instanes
# methods to count instances
my $_count = 0;
return;
}
-{ ## Beginning of routine to check line hashes
+{ ## closure for sub check_line_hashes
my %valid_line_hash;
return;
}
-{ # scan_comments
+{ ## closure for sub scan_comments
my $Last_line_had_side_comment;
my $In_format_skipping_section;
return $@;
}
-{
+{ ## closure for sub prepare_cuddled_block_types
+
my %no_cuddle;
# Add keywords here which really should not be cuddled
return;
}
-{ # begin is_essential_whitespace
+{ ## closure for sub is_essential_whitespace
my %is_sort_grep_map;
my %is_for_foreach;
}
}
-{
+{ ## closure for sub new_secret_operator_whitespace
+
my %secret_operators;
my %is_leading_secret_token;
return $rnew_token;
}
-{ # begin process_line_of_CODE
+{ ## closure for sub process_line_of_CODE
# uses Global Symbols:
$vao->get_cached_line_count();
}
-{ # closure for grind_batch_of_CODE
+{ ## closure for sub grind_batch_of_CODE
# Keep track of consecutive nonblank lines so that we can insert occasional
# blanks
return;
}
-{
+{ ## closure for sub set_logical_padding
my %is_math_op;
BEGIN {
return;
}
-{
+{ ## closure for sub accumulate_csc_text
+
my %is_if_elsif_else_unless_while_until_for_foreach;
BEGIN {
return $csc_text;
}
-{ # sub balance_csc_text
+{ ## closure for sub balance_csc_text
my %matching_char;
return;
}
-{ # begin make_alignment_patterns
+{ ## closure for sub make_alignment_patterns
my %block_type_map;
my %keyword_map;
} # end make_alignment_patterns
-{ # begin unmatched_indexes
+{ ## closure for sub match_opening_and_closing_tokens
# closure to keep track of unbalanced containers.
# arrays shared by the routines in this block:
return ( $indent, $offset, $is_leading, $exists );
}
-} # end unmatched_indexes
+} # end closure for sub match_opening_and_closing_tokens
sub get_opening_indentation {
return ( $rindentation_list->[ $nline + 1 ], $offset, $is_leading );
}
-{
+{ ## closure for sub set_adjusted_indentation
my %is_if_elsif_else_unless_while_until_for_foreach;
my ( $last_indentation_written, $last_unadjusted_indentation,
return ($seqno);
}
-{
+{ ## closure for sub set_vertical_alignment_markers
my %is_vertical_alignment_type;
my %is_not_vertical_alignment_token;
my %is_vertical_alignment_keyword;
}
-{ # set_bond_strengths
+{ ## closure for sub set_bond_strengths
my %is_good_keyword_breakpoint;
my %is_lt_gt_le_ge;
return;
}
-{ # begin scan_list
+{ ## closure for sub scan_list
my (
$block_type, $current_depth,
return $i_opening_minus;
}
-{ # begin set_comma_breakpoints_do
+{ ## closure for sub set_comma_breakpoints_do
my %is_keyword_with_special_leading_term;
return;
}
-{ # begin recombine_breakpoints
+{ ## closure for sub recombine_breakpoints
my %is_amp_amp;
my %is_ternary;
return $self->in_same_container_K( $K_to_go[$i1], $K_to_go[$i2] );
}
-{ # sub in_same_container_K
+{ ## closure for sub in_same_container_K
my $ris_break_token;
my $ris_comma_token;
return;
}
-{ # closure for decide_if_list
+{ ## closure for sub decide_if_list
my %is_comma_token;
return;
}
-{ # closure for sub sweep_top_down
+{ ## closure for sub sweep_top_down
my $rall_lines; # all of the lines
my $grp_level; # level of all lines
return;
}
-{ # do_left_to_right_sweep
+{ ## closure for sub do_left_to_right_sweep
my %is_good_alignment_token;
return;
}
-{ # closure for decode_alignment_token
+{ ## closure for sub decode_alignment_token
# This routine is called repeatedly for each token, so it needs to be
# efficient. We can speed things up by remembering the inputs and outputs
}
}
-{ # closure for delete_unmatched_tokens
+{ ## closure for sub delete_unmatched_tokens
my %is_assignment;
my %keep_after_deleted_assignment;
return;
}
-{ # closure for is_marginal_match
+{ ## closure for sub is_marginal_match
my %is_if_or;
my %is_assignment;
return $nlines + $file_writer_object->get_output_line_number();
}
-{ # closure for valign_output_step_B
+{ ## closure for sub valign_output_step_B
# These are values for a cache used by valign_output_step_B.
my $cached_line_text;
}
}
-{ # closure for valign_output_step_C
+{ ## closure for sub valign_output_step_C
# Vertical alignment buffer used by valign_output_step_C
my $valign_buffer_filling;
return;
}
-{ # begin get_leading_string
+{ ## closure for sub get_leading_string
my @leading_string_cache;