};
$opt{render} = {
- (map +("-$_", "_render_$_"), qw(op func bind ident literal row)),
+ (map +($_, "_render_$_"), qw(op func bind ident literal row)),
%{$opt{render}||{}}
};
my ($self, $aqt) = @_;
my ($k, $v, @rest) = %$aqt;
die "No" if @rest;
+ die "Also no" unless $k =~ s/^-//;
if (my $meth = $self->{render}{$k}) {
return $self->$meth($v);
}
# an explicit node type is currently assumed to be expanded (this is almost
# certainly wrong and there should be expansion anyway)
- if ($self->{render}{$k}) {
+ if ($self->{render}{$op}) {
return { $k => $v };
}