String s = matched;
if (matched.indexOf('@') > -1) {
// process internal template
char ch = s.charAt(0);
s = s.substring(1); //prevent CodeTypeBlockStartSensor to sense it again
String code = ctx.getCodeBuilder().addInlineInclude(s, ctx.currentLine());
if (matched.endsWith("\n")) {
code = code + ";p(\"\\n\");";
}
s = String.format("p('%s');", String.valueOf(ch)) + code + String.format(";__ctx.pushCodeType(%s);", type.newInstanceStr());
} else {