private static void error(IContext ctx) {
raiseParseException(ctx, "Error parsing extends statement. The correct format is @extends(\"my.parent.template\"[, arg1=val1, val2, ...])");
}
public IParser create(IContext ctx) {
return new RemoveLeadingLineBreakAndSpacesParser(ctx) {
public Token go() {
Regex r = reg(dialect());
if (!r.search(remain())) {
error(ctx());
}