next;
}
- # Handle block comment to be deleted
- elsif ( $CODE_type eq 'DEL' ) {
- $self->flush();
- next;
- }
-
# Handle all other lines of code
$self->process_line_of_CODE($line_of_tokens);
}
# 'SBC'=Static Block Comment - a block comment which does not get
# indented
# 'SBCX'=Static Block Comment Without Leading Space
- # 'DEL'=Delete this line
# 'VER'=VERSION statement
# '' or (undefined) - no restructions
# 'SBC'=Static Block Comment - a block comment which does not get
# indented
# 'SBCX'=Static Block Comment Without Leading Space
- # 'DEL'=Delete this line
# 'VER'=VERSION statement
# '' or (undefined) - no restructions
# Handle a block (full-line) comment..
if ($is_block_comment) {
- if ( $rOpts->{'delete-block-comments'} ) { return 'DEL' }
-
# TRIM COMMENTS -- This could be turned off as a option
$rLL->[$Kfirst]->[_TOKEN_] =~ s/\s*$//; # trim right end
if ( $rOpts->{'tee-block-comments'} ) {
$sink_object->write_tee_line($input_line);
}
+ if ( $rOpts->{'delete-block-comments'} ) {
+ $self->flush();
+ return;
+ }
destroy_one_line_block();
$self->process_batch_of_CODE();