parsers.add(new ParserDispatcher(ctx));
parsers.add(new BlockCloseParser(ctx));
parsers.add(new ScriptParser(ctx));
parsers.add(new StringTokenParser(ctx));
// add a fail through parser to prevent unlimited loop
parsers.add(new ParserBase(ctx) {
@Override
public Token go() {
TemplateParser p = (TemplateParser) ctx();
if (lastCursor < p.cursor) return null;
//logger.warn("fail-through parser reached. is there anything wrong in your template? line: %s", ctx.currentLine());