From bfbf091a98422093b359f66e23cc4452052a773b Mon Sep 17 00:00:00 2001 From: "jacob.wieland" Date: Wed, 11 Dec 2024 12:13:36 +0100 Subject: [PATCH] fix gherkin.berp --- c/gherkin.berp | 4 ++-- gherkin.berp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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)+