Skip to content
Merged
2 changes: 1 addition & 1 deletion perl/lib/Gherkin/MarkdownTokenMatcher.pm
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ sub match_TableRow {
my $table_cells = $token->line->table_cells;
return if ( $self->_is_gfm_table_separator($table_cells) );
$self->_set_token_matched( $token,
TableRow => { items => $table_cells } );
TableRow => { keyword => '|', items => $table_cells } );
}
}

Expand Down
4 changes: 2 additions & 2 deletions testdata/good/datatables.feature.md.tokens
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(3:5)ScenarioLine:()Scenario/minimalistic/
(4:1)Empty://
(5:3)StepLine:(Context)Given /a simple data table/
(6:3)TableRow://5:foo,11:bar
(6:3)TableRow:()|//5:foo,11:bar
(7:1)Empty://
(8:3)TableRow://5:boz,11:boo
(8:3)TableRow:()|//5:boz,11:boo
EOF
8 changes: 4 additions & 4 deletions testdata/good/tags.feature.md.tokens
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
(15:1)TagLine://2:@ex_tag1,13:@ex_tag2
(16:3)TagLine://4:@ex_tag3
(17:5)ExamplesLine:()Examples//
(18:3)TableRow://5:what
(18:3)TableRow:()|//5:what
(19:1)Empty://
(20:3)TableRow://5:minimalism
(20:3)TableRow:()|//5:minimalism
(21:1)Empty://
(22:1)TagLine://2:@ex_tag4,13:@ex_tag5
(23:3)TagLine://4:@ex_tag6
(24:5)ExamplesLine:()Examples//
(25:3)TableRow://5:what
(25:3)TableRow:()|//5:what
(26:1)Empty://
(27:3)TableRow://5:more minimalism
(27:3)TableRow:()|//5:more minimalism
(28:1)Empty://
(29:1)TagLine://2:@comment_tag1
(30:4)ScenarioLine:()Scenario/comments/
Expand Down
Loading