Skip to content

Commit 5028c12

Browse files
committed
Skip comments
Comments can have text like C<push> that looks correct, but since it's all just text, this would otherwise trigger a test failure.
1 parent 90102ad commit 5028c12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xt/rakudoc-brackets.rakutest

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ sub is-valid-text($node) {
3939
sub walk-content($item) {
4040
if !(
4141
$item ~~ Pod::Block::Code or
42-
$item ~~ Pod::FormattingCode
42+
$item ~~ Pod::Block::Comment or
43+
$item ~~ Pod::FormattingCode
4344
) {
4445
is-valid-text($item);
4546
next unless $item.can('contents');

0 commit comments

Comments
 (0)