Skip to content

Commit c1bd4b2

Browse files
committed
[Perl] don't populate comments in AST when MDG
like with Javascript (the MDG reference implementation), but as there is no `gherkin-generate-tokens` with it, I don't know if it is a feature or a bug.
1 parent 38b4938 commit c1bd4b2

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)