next unless m{\=\>} or ($cent and m{ \.\. });
my $mapop = '=>';
# adhoc: special case NEWQUOTE here so we recognise things in changequote
- if (s{^(\s*)(\&\S+|NEWQUOTE\S+|\$)\s+(\=\>|\.\.)\s+(\S+)\s+}{} ||
- s{^()(\&\:\w+(?: \S+)*)\s{2,}(\=\>)\s{2,}($withspcs)$}{} ||
- $cent && s{^()($withspcs)\s{2,}(\.\.)\s{2,}($withspcs)$}{}) {
+ if (s{^()(\&\:\w+(?: \S+)*)\s{2,}(\=\>)\s{2,}($withspcs)$}{} ||
+ s{^(\s*)(\&\S+|NEWQUOTE\S+|\$)\s+(\=\>|\.\.)\s+(\S+)\s+}{} ||
+ $cent && s{^()($withspcs)\s{2,}(\.\.)\s{2,}($withspcs)$}{}) {
# adhoc: expected indented iff in changequote part
confess if length($1) xor $in_changequote;
$mapop = $3;
$e->{Out} .= ' '.$&;
} elsif (m/^$/) {
} else {
- confess "unk rhs $_ ?";
+ confess "unk rhs $_ (In=\"$e->{In}\" out=\"$e->{Out}\"?";
}
$e->{CQ} = $in_changequote;
# adhoc: rely on this specific section title
# adhoc: skip &:macro in already-doubling part
return 0 if $e->{In} =~ m{^\&\:macro};
# adhoc: skip &${ ie eval in already-doubling part
- return 0 if $e->{In} =~ m{^\&\$\{};
+ return 0 if $e->{In} =~ m{^\&\{};
return 0 if $e->{CQ};
return $e->{DD} || !grep {
# If there are two entries with the same In,