Adding New Languages
- To add a new language:
- Add a tree-sitter grammar and build it (see tree-sitter docs).
- Add a
queries/<lang>/tags.scm
file with queries for symbols you want to extract. - Add the file extension to
TreeSitterSymbolExtractor.LANGUAGES
. - Write/expand tests for the new language.
Why?
- This approach lets you support any language with a tree-sitter grammar—no need to change core logic.
tags.scm
queries make symbol extraction flexible and community-driven.