Let’s Write a Tree-Sitter Major Mode Creating a standard programming major mode presents significant challenges, with the intricate tasks of establishing proper indentation and font highlighting being among the two hardest things to get right. It's painstaking work, and it'll quickly descend into a brawl between the font lock engine and your desire for correctness. Tree-sitter makes writing many m
![Let's Write a Tree-Sitter Major Mode](https://cdn-ak-scissors.b.st-hatena.com/image/square/6b96c6ad5e75a8c344ee975a5a6db936b165e8b7/height=288;version=1;width=512/https%3A%2F%2Fwww.masteringemacs.org%2Fstatic%2Fuploads%2Farticle-images%2Ftechnicolor-tree.jpg)