Elixir grammar for tree-sitter, providing parsing, syntax highlighting, and code navigation for Elixir files. Current version 0.3.5, requires Python >=3.9. Released irregularly, tied to tree-sitter updates.
pip install tree-sitter-elixirNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: load the Elixir language, parse a source string, and print the syntax tree.
Ensure tree-sitter is installed at version 0.21 or later: pip install 'tree-sitter>=0.21'
Update custom queries to use #any-of? instead of #match? when matching multiple values.
Use 'from tree_sitter_elixir import language' (lowercase) and call language() to get the language object.
Run: pip install tree-sitter-elixir
Upgrade tree-sitter: pip install --upgrade tree-sitter