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

Preserve trailing comments. Fixes #38. #41

Merged
merged 2 commits into from
Oct 23, 2023
Merged

Preserve trailing comments. Fixes #38. #41

merged 2 commits into from
Oct 23, 2023

Conversation

xeger
Copy link
Member

@xeger xeger commented Oct 15, 2023

🤔 What's changed?

This fixes the bug described in #38.

⚡️ What's your motivation?

Comments still aren't handled ideally; see #40 for some remaining issues. However, this bug is "destructive" i.e. the formatter can remove Gherkin statements that have been temporarily commented out.

It's better to fix the destructive bug quickly than to strive for perfection. We can discuss future refinements on #40.

🏷️ What kind of change is this?

  • 🐛 Bug fix (non-breaking change which fixes a defect)

♻️ Anything particular you want feedback on?

📋 Checklist:

  • I agree to respect and uphold the Cucumber Community Code of Conduct
  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • Users should know about my change
    • I have added an entry to the "Unreleased" section of the CHANGELOG, linking to this pull request.

Also eliminate useless trailing space after `:`
when the node has no `name`.
@xeger xeger merged commit a220d98 into main Oct 23, 2023
8 checks passed
@xeger xeger deleted the trailingComments branch October 23, 2023 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant