-
-
Notifications
You must be signed in to change notification settings - Fork 81
Allow comment inside descriptions #334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The parser is generated. To change the parser you'll have to change the grammar. Lines 35 to 38 in 00fcc43
To regenerate the parsers you can follow these instructions: https://github.com/cucumber/gherkin/blob/main/CONTRIBUTING.md#generating-parsers |
|
I have changed the grammar to allow any mixture of empty lines, comments and other-lines as the description. Extracting only the other-lines from the Description-AST-Node (as before) should yield the description-text without the comments and empty lines. Only difference is now that a collection of ony empty-lines and comments would yield an empty description text instead of a non-existing Description node. |
|
Changed the grammar in a way that is more consistent with the former test cases (treating empty lines inside description blocks as '#Other' lines). |
|
@jacob-wieland-gematik, installing |
bfbf091 to
2a34df3
Compare
|
@kieran-ryan I have rebased on latest main and updated a tokens file. Can you approve the checks again? |
|
Added dialect.c which was missing for some reason. Please approve checks @kieran-ryan |
|
I am not able to generate Parser.php locally, so not sure what to do here @kieran-ryan |
|
@jacob-wieland-gematik are you able to generate the php parser using the docker container? https://github.com/cucumber/gherkin/blob/main/CONTRIBUTING.md#generating-parsers |
No, there seems to be a problem doing that under windows (probably CRLF vs LF related) that hinders this generation. When change the CRLF of the generated classes.php to LF and then do the generation steps manually, I was able to generate Parser.php |
|
When will this be merged? @mpkorstanje @kieran-ryan |
|
Always a bit hard to say, depends on availability. Same for releases. π But hopefully bit more regularly now the holidays are over. |
mpkorstanje
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall. I am missing a test with a comment in the middle of a description.
Do you have time to add a scenario to descirptions.feature?
I can try. |
|
Added tests @mpkorstanje |
|
Added missing compare files. @mpkorstanje |
|
Seems all is well now. Any chance we can merge this? @mpkorstanje @kieran-ryan |
mpkorstanje
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers! Looks good now. Much appreciated.
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [@cucumber/cucumber](https://redirect.github.com/cucumber/cucumber-js) | [`11.3.0` -> `12.0.0`](https://renovatebot.com/diffs/npm/@cucumber%2fcucumber/11.3.0/12.0.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>cucumber/cucumber-js (@​cucumber/cucumber)</summary> ### [`v12.0.0`](https://redirect.github.com/cucumber/cucumber-js/blob/HEAD/CHANGELOG.md#1200---2025-07-13) [Compare Source](https://redirect.github.com/cucumber/cucumber-js/compare/v11.3.0...v12.0.0) ##### Added - Allow comments inside descriptions ([cucumber/gherkin#334](https://redirect.github.com/cucumber/gherkin/pull/334)) - Add original `error` to `After` and `AfterStep` hook parameters ([#​2572](https://redirect.github.com/cucumber/cucumber-js/pull/2572)) - Add support for Node.js 24.x ([#​2588](https://redirect.github.com/cucumber/cucumber-js/pull/2588)) ##### Changed - Redesigned HTML formatter header ([cucumber/react-components#381](https://redirect.github.com/cucumber/react-components/pull/381)) ##### Removed - BREAKING CHANGE: Remove support for Node.js 18.x ([#​2588](https://redirect.github.com/cucumber/cucumber-js/pull/2588)) - BREAKING CHANGE: Remove support for Node.js 23.x ([#​2588](https://redirect.github.com/cucumber/cucumber-js/pull/2588)) - BREAKING CHANGE: Remove `publishQuiet` option ([#​2587](https://redirect.github.com/cucumber/cucumber-js/pull/2587)) </details> --- ### Configuration π **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). π¦ **Automerge**: Disabled by config. Please merge this manually once you are satisfied. β» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. π **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/infonl/dimpact-zaakafhandelcomponent). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4yMy4yIiwidXBkYXRlZEluVmVyIjoiNDEuMjMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
π€ What's changed?
β‘οΈ What's your motivation?
Fixes: #333
π·οΈ What kind of change is this?
β»οΈ Anything particular you want feedback on?
π Checklist:
This text was originally generated from a template, then edited by hand. You can modify the template here.