Skip to content

Fix parsing of documents with only top-level Sections - #73

Merged
istathar merged 4 commits into
technique-lang:mainfrom
istathar:fix-section-steps
Aug 30, 2025
Merged

Fix parsing of documents with only top-level Sections#73
istathar merged 4 commits into
technique-lang:mainfrom
istathar:fix-section-steps

Conversation

@istathar

Copy link
Copy Markdown
Member

Encountered a nasty bug that a document with only top-level Sections, which by design is a valid and admissible Technique (and is even how struct Technique is defined) was not being parsed but worse was being silently discarded.

Fixed an omission in the formatter where sections were not being preceded by a blank line.

Added an example to the golden tests to enforce this remaining correct in the future.

@istathar istathar self-assigned this Aug 30, 2025
@istathar

Copy link
Copy Markdown
Member Author

This was uncovered writing a checklist for bedtime with my little boy. Fun!

@istathar istathar changed the title Fix section steps Fix parsing of documents with only top-level Sections Aug 30, 2025
@istathar
istathar merged commit ac0efe8 into technique-lang:main Aug 30, 2025
1 check passed
@istathar
istathar deleted the fix-section-steps branch September 4, 2025 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant