For the snapshot tests (e.g. src/snapshots/type_annotations.txt), this is the current format:
(file
(module (1:1-1:10))
(type_anno (3:1-4:4)
"foo"
(tag (3:7-3:10) "U64")))
Can we change this to:
(file
(module (1:1-1:10))
(type_anno (3:1-4:4)
"foo"
(tag (3:7-3:10) "U64")
)
)
It can get pretty ridiculous otherwise:
(tag (7:14-7:20) "String")))))
It's also much easier to copy groups this way.
When do we add a newline?
I don't know how easy it is to change to formatting like this. Byt we isolated it to one place so should be possible.
When do we add a newline?
How about If the matching opening bracket is on an earlier line?
Yeah, if the printout is multiline then it should do this
Last updated: Jun 16 2026 at 16:19 UTC