Have you considered an approach based on annotations and multi-line strings? I'm not sure string constants are valid targets for annotations but maybe that could be added to the language?
@Language(name="Javascript")
"""
function callBark(aBarker) {
aBarker.bark();
}
"""