diff --git a/c/gherkin.berp b/c/gherkin.berp index ed52faf3d..1b97fce01 100644 --- a/c/gherkin.berp +++ b/c/gherkin.berp @@ -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)+ diff --git a/gherkin.berp b/gherkin.berp index b7edaf9c4..1b97fce01 100644 --- a/gherkin.berp +++ b/gherkin.berp @@ -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)+