Acme-PlayCode
view release on metacpan or search on metacpan
lib/Acme/PlayCode.pm view on Meta::CPAN
if ( $token->isa('PPI::Token::HereDoc') ) {
my @output = @{ $self->output };
my @next_tokens;
my $old_flag = $token_flag;
while ( $old_flag++ ) {
push @next_tokens, $tokens[$old_flag];
last if ( $tokens[$old_flag]->content eq ';' );
}
push @output, $token->content,
join('', map { $_->content } @next_tokens ), "\n",
join('', $token->heredoc),
$token->terminator;
# skip next itself and next ';'
$self->token_flag( $token_flag + 1 + scalar @next_tokens );
$self->output( \@output );
return;
} else {
return $token->content;
}
( run in 1.105 second using v1.01-cache-2.11-cpan-49f99fa48dc )