stacklit
stacklit copied to clipboard
Add Elixir and Zig tree-sitter support
Two more languages worth adding. Both have mature tree-sitter grammars available.
Same process as other languages:
- Add grammar dependency
- Write export/import extraction queries
- Add test fixtures
- Update README
Elixir is interesting because module exports work differently (defdelegate, use, import). Zig is straightforward but the pub keyword scoping needs careful handling.
Fixed in #38. Elixir and Zig are extracted now (imports, definitions and signatures), with fixtures and tests. #41 adds symbol and call edges for Elixir and Zig in the symbol graph too.