cucumber / gherkin-utils

API for working with Gherkin documents
MIT License
9 stars 4 forks source link

Preserve trailing comments. Fixes #38. #41

Closed xeger closed 8 months ago

xeger commented 8 months ago

🤔 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?

♻️ Anything particular you want feedback on?

📋 Checklist: