Modern Tree-sitter, part 3: syntax highlighting via queries

Open link in next tab

Modern Tree-sitter, part 3: syntax highlighting via queries |

https://pulsar-edit.dev/blog/20231013-savetheclocktower-modern-tree-sitter-part-3.html

A Community-led Hyper-Hackable Text Editor

Last time I laid out the case for why we chose to embrace TextMate-style scope names, even in newer Tree-sitter grammars. I set a difficult challenge for Pulsar: make it so that a Tree-sitter grammar can do anything a TextMate grammar can do.

Today, I'd like to show you the specific problems that we had to solve in order to pull that off.