[wadler] Trivia escapes groups

This means that forced breaks from comments don't screw up the
following single-line things. But this still isn't right; we need to
fine tune how we represent trivia.
This commit is contained in:
John Doty 2024-09-15 08:51:18 -07:00
parent 9d55588a35
commit c31d527077
4 changed files with 96 additions and 26 deletions

View file

@ -569,6 +569,10 @@ class Harness:
append("child", 1)
self.format_document(lines, doc.child, indent + 2)
case wadler.Trivia():
append("trivia")
self.format_document(lines, doc.child, indent + 1)
case None:
pass