try {
md.traverse(new ASTVisitor() {
@Override
public boolean visitGeneral(ASTNode node) throws Exception {
if (node instanceof StringLiteral) {
StringLiteral be = (StringLiteral) node;
result.add(new PairBlock(offset + be.sourceStart(), offset + be.sourceEnd() - 1, '\"'));
// } else if (node instanceof RutaExecuteExpression) {
// RutaExecuteExpression be = (RutaExecuteExpression) node;
// result.add(new PairBlock(offset + be.sourceStart(),
// offset + be.sourceEnd() - 1, '['));
} else if (node instanceof Block) {
Block be = (Block) node;
result.add(new PairBlock(offset + be.sourceStart(), offset + be.sourceEnd() - 1, '{'));
}
return super.visitGeneral(node);
}
});
} catch (Exception e) {