Please review: Bug: https://bugs.openjdk.java.net/browse/JDK-8073653 Webrev: http://cr.openjdk.java.net/~hannesw/8073653/webrev.00/ I don’t think there is a formal spec for heredoc out there, so I used documentation from other scripting languages as a guide. Hannes