Add test for GH #48
Terminate @{... early if a heredoc is inside

Fixes GH #48