Skip to content

Commit

Permalink
adapt comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-wieland-gematik committed Dec 10, 2024
1 parent 05208f6 commit bacbd74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gherkin.berp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ DocString! := #DocStringSeparator #Other* #DocStringSeparator

Tags! := #TagLine+

// we need to explicitly mention comment, to avoid merging it into the description line's #Other token
// we also eat the leading empty lines, the tailing lines are not removed by the parser to avoid lookahead, this has to be done by the AST builder
// descriptions should be allowed to be interspersed with comments and empty lines
// if only comments and empty lines are encountered, the description text will be empty
DescriptionHelper := Description?
Description! := (#Empty | #Comment | #Other)+

0 comments on commit bacbd74

Please sign in to comment.