Commit graph

2 commits

Author SHA1 Message Date
Riley Bruins
0a205a9682
fix(formatter): correct blank MISSING node format (#95)
The problem was we only stopped recurring when a node had no *named*
children. A blank MISSING node, however, has no named children but a few
unnamed children. This meant the entire node was treated as one "string
unit" so spaces inside it weren't being collapsed. This commit fixes
the formatter logic and adds some more test cases for this.
2025-04-29 18:08:19 -07:00
Riley Bruins
bcea9c4252
refactor: move large query strings into their own files (#94)
This commit also adds another test for formatting, and fixes an issue
where the final newline was not appended to a formatted document.
2025-04-29 18:05:00 -07:00