Skip to content

Commit 86e4930

Browse files
committed
[Perl] don't populate comments when MDG
1 parent d134db8 commit 86e4930

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

perl/lib/Gherkin/AstBuilder.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ sub build {
6363
Cucumber::Messages::Comment->new(
6464
location => $self->get_location($token),
6565
text => $token->matched_text
66-
);
66+
) unless $self->{uri} =~ m/\.md$/;
6767
} else {
6868
$self->current_node->add( $token->matched_type, $token );
6969
}

0 commit comments

Comments
 (0)