Skip to content

Commit 8ec2eb0

Browse files
committed
[Perl] don't populate comments when MDG
like with Javascript
1 parent bad2c0c commit 8ec2eb0

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
@@ -60,7 +60,7 @@ sub build {
6060
Cucumber::Messages::Comment->new(
6161
location => $self->get_location($token),
6262
text => $token->matched_text
63-
);
63+
) unless $self->{uri} =~ m/\.md$/;
6464
} else {
6565
$self->current_node->add( $token->matched_type, $token );
6666
}

0 commit comments

Comments
 (0)