#899: heredocs in a macro argument broken.
--------------------+-------------------------------------------------------
Reporter: coke | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: none | Version: trunk
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
--------------------+-------------------------------------------------------
{{{
.macro qq(code)
.code
.endm
.sub main :main
say 'hi'
say <<'FOO'
hi
FOO
.qq({
say "hi"
})
=for FAIL
.qq({
say <<"FOO"
hi
FOO
})
=cut
.end
}}}
If you remove the pod comments, you get:
{{{
parrot foo.pir
error:imcc:The opcode 'say' (say<0>) was not found. Check the type and
number of the arguments in macro '.qq' line 3 included from
'foo.pir' line 1
}}}
I'd expect non-POD'd version to print out 'hi' 4 times (modulo whitespace)
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/899>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets