It’s been quite a learning curve, but the Graphviz support in the tree-sitter parser is really helpful in trying to debug a hairy tree-editing issue I’ve been chasing. It generates SVG that can be viewed in a browser. Every node has hover data!

screenshot of a generated tree graph representing a text document's content

*****
Written on