Comment by affyboi
4 years ago
Probably more just a function of my poor heuristics (or lack thereof), diffsitter does equality comparisons on tree sitter nodes, which can also cause weird stuff like this where text gets grouped together.
I'm redoing the diffing algo anyways, so I'll keep this in mind for the next go.
Edit: it's because I decided to split line-by-line a while back because I thought it would make the diffs easier to read (rather than squashing all of the tokens together, which is not very aesthetically pleasing), but also gives us unintuitive results like this.
No comments yet
Contribute on Hacker News ↗