X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?p=subdirmk.git;a=blobdiff_plain;f=tests%2Ffilter%2Fextract-doctest;h=28dee5ec7a4942cfd7f31f306fbea6c1f3c907ea;hp=b7da9ac72d3701d1b429b3346a90b95a72613c00;hb=8c6b02849c6918f1deac8e463b24335844d65b86;hpb=8df0559baf489581ba2f7decc8f3b6854df7fc52 diff --git a/tests/filter/extract-doctest b/tests/filter/extract-doctest index b7da9ac..28dee5e 100755 --- a/tests/filter/extract-doctest +++ b/tests/filter/extract-doctest @@ -41,8 +41,8 @@ while (<>) { # parse: rely on looking for => (and .. on subsequent lines) next unless m{\=\>} or ($cent and m{ \.\. }); my $mapop = '=>'; - # adhoc: special case STUFF here so we recognise things in changequote - if (s{^(\s*)(\&\S+|STUFF\S+|\$)\s+(\=\>|\.\.)\s+(\S+)\s+}{} || + # 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)$}{}) { # adhoc: expected indented iff in changequote part @@ -104,6 +104,7 @@ sub write_permode ($$$$$;$$) { my $rubric = $e->{In}; $rubric =~ s/\&/AMP /g; $rubric =~ s/\$/DOLLAR /g; + $rubric =~ s/NEWQUOTE/NEW_QUOTE /g; my $f = $e->{In} =~ m/\n/ ? "\n# %s:\n%s\n\n" : "%-30s: %s.\n"; @@ -128,8 +129,8 @@ sub writeout ($) { '','','', 'normal', sub { !$_[0]{CQ} } ); write_permode($dir_prefix, - "&:changequote STUFF", - "STUFF:changequote &", + "&:changequote NEWQUOTE", + "NEWQUOTE:changequote &", "\n", 'changequote', sub { $_[0]{CQ} } );