Splitting and joining using tree-sitter

from blog meain/blog, | ↗ original
EDIT: I've since updated the code to support leading commas. You can find that version here Another day, another blog on tree-sitter. Not sure if you have read any of my previous blogs on tree-sitter, but I have a few of them. First, let me show you what this one is about. Here is a recording of the code in action. Video of the code in action...