Skip to content

Commit e5d6a5a

Browse files
committed
Fix not passing using :$no-proc-async in the signature of a sub
1 parent 3faff50 commit e5d6a5a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

htmlify.p6

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ sub recursive-dir($dir) {
133133
my $proc;
134134
my $proc-supply;
135135
my $proc-prom;
136-
my $async = True;
137136
sub MAIN(
138137
Bool :$typegraph = False,
139138
Int :$sparse,
@@ -957,7 +956,7 @@ sub write-qualified-method-call(:$name!, :$pod!, :$type!) {
957956
spurt "html/routine/{escape-filename $type}.{escape-filename $name}.html", p2h($p, 'routine');
958957
}
959958

960-
sub highlight-code-blocks(:$use-highlights = False) {
959+
sub highlight-code-blocks(:$no-proc-async = False, :$use-highlights = False) {
961960
say "highlight-code-blocks has been called";
962961
if $use-highlights {
963962
note "Using highlights";
@@ -975,7 +974,7 @@ sub highlight-code-blocks(:$use-highlights = False) {
975974
spurt $tmp_fname, $node.contents.join;
976975
LEAVE try unlink $tmp_fname;
977976
my $html;
978-
if $async {
977+
if ! $no-proc-async {
979978
my $promise = Promise.new;
980979
my $tap = $proc-supply.tap( -> $json {
981980
my $parsed-json = from-json($json);

0 commit comments

Comments
 (0)