[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:
parent
9d55588a35
commit
c31d527077
4 changed files with 96 additions and 26 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue