Skip to content
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

Allow text after Background: and Examples: #31

Merged
merged 8 commits into from
Jan 31, 2022
Merged

Conversation

mladedav
Copy link
Contributor

Currently this crate allows only whitespace after Background:, but any characters should be allowed.

From Gherkin reference
Each line that isn’t a blank line has to start with a Gherkin keyword, followed by any text you like. I have also checked online the the official JS implementation and it allows the text after.

VS code extension also puts there some text by default which is how I stumbled upon this.

I have also added the same for Examples:, all other keywords seem to have names normally so those should be covered.

One more commit I did was overriding the transitive dependency on this crate in the cucumber test so that it uses this version, not anything in crates.io. I also had to update the cucumber version because of the crate name change.

@ilslv
Copy link
Member

ilslv commented Jan 31, 2022

@mladedav thanks for contributing! I've pushed some changes, mainly to reflect Background and Examples names in AST.

@ilslv ilslv added this to the 0.12.0 milestone Jan 31, 2022
@ilslv ilslv added the enhancement Improvement of existing features or bugfix label Jan 31, 2022
@ilslv
Copy link
Member

ilslv commented Jan 31, 2022

FCM

Support text after `Background` and `Examples` keywords (#31)

@ilslv ilslv requested a review from tyranron January 31, 2022 06:53
Copy link
Member

@tyranron tyranron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mladedav @ilslv thanks 🍻

@tyranron tyranron merged commit 48d05f7 into cucumber-rs:main Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of existing features or bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants