Skip to content

Commit b306073

Browse files
committed
Don't stop processing too early.
1 parent 7421597 commit b306073

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

htmlify.p6

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,12 @@ sub find-definitions (:$pod, :$origin, :$min-level = -1) {
324324
# Is this new header a definition?
325325
# If so, begin processing it.
326326
# If not, skip to the next heading.
327-
my @header := $pod-element.contents[0].contents;
327+
328+
my @header;
329+
try {
330+
@header := $pod-element.contents[0].contents;
331+
CATCH { next }
332+
}
328333
my @definitions; # [subkind, name]
329334
my $unambiguous = False;
330335
given @header {
@@ -395,7 +400,7 @@ sub find-definitions (:$pod, :$origin, :$min-level = -1) {
395400
}
396401
default {
397402
# No clue, probably not meant to be indexed
398-
last
403+
next;
399404
}
400405
}
401406

0 commit comments

Comments
 (0)