Modern Tree-sitter, part 4: indentation and code folding
Modern Tree-sitter, part 4: indentation and code folding
pulsar-edit.dev
Modern Tree-sitter, part 4: indentation and code folding |
Last time we looked at Tree-sitter’s query system and showed how it can be used to make a syntax highlighting engine in Pulsar. But syntax highlighting is simply the most visible of the various tasks that a language package performs.
Today we’ll look at two other systems — indentation hinting and code folding — and I’ll explain how queries can be used to support each one.