Skip to content

Commit bfbf091

Browse files
fix gherkin.berp
1 parent d30241b commit bfbf091

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: c/gherkin.berp

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ DocString! := #DocStringSeparator #Other* #DocStringSeparator
3232

3333
Tags! := #TagLine+
3434

35-
// we need to explicitly mention comment, to avoid merging it into the description line's #Other token
36-
// 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
35+
// descriptions should be allowed to be interspersed with comments
36+
// if only comments are encountered, the description text will be empty
3737
DescriptionHelper := #Empty* Description?
3838
Description! := (#Other | #Comment)+

Diff for: gherkin.berp

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ DocString! := #DocStringSeparator #Other* #DocStringSeparator
3232

3333
Tags! := #TagLine+
3434

35-
// descriptions should be allowed to be interspersed with comments and empty lines
36-
// if only comments and empty lines are encountered, the description text will be empty
35+
// descriptions should be allowed to be interspersed with comments
36+
// if only comments are encountered, the description text will be empty
3737
DescriptionHelper := #Empty* Description?
38-
Description! := (#Other| #Comment)+
38+
Description! := (#Other | #Comment)+

0 commit comments

Comments
 (0)