Subject: | Comments inside heredocs |
With Acme::Comment 1.0 and 1.01 (perl 5.8, linux), if there is something that looks like a comment in a here-document, it gets parsed as a comment instead of being treated as a normal string.
Example:
#!/usr/bin/perl
use Acme::Comment type => 'C++', own_line => 1, one_line => 0;
my $foo= <<"_FOO_";
/*
foo
*/
_FOO_
my $bar = <<"_BAR_";
// bar
_BAR_
my $baz = <<"_BAZ_";
/* baz */
_BAZ_
print "$foo$bar$baz"; # prints '/* baz */'
__END__
I think it should have printed:
/*
foo
*/
// bar
/* baz */