Skip to content

Commit

Permalink
fix gherkin.berp
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-wieland-gematik committed Dec 11, 2024
1 parent d30241b commit bfbf091
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions c/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
// if only comments are encountered, the description text will be empty
DescriptionHelper := #Empty* Description?
Description! := (#Other | #Comment)+
6 changes: 3 additions & 3 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+

// 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
// descriptions should be allowed to be interspersed with comments
// if only comments are encountered, the description text will be empty
DescriptionHelper := #Empty* Description?
Description! := (#Other| #Comment)+
Description! := (#Other | #Comment)+

0 comments on commit bfbf091

Please sign in to comment.