3 unstable releases
0.2.0 | Apr 8, 2024 |
---|---|
0.1.1 | Dec 4, 2023 |
0.1.0 | Mar 14, 2023 |
#64 in Text editors
3,871 downloads per month
Used in 2 crates
13MB
438K
SLoC
tree-sitter-elixir
Elixir grammar for tree-sitter.
Ready for production. Currently used by GitHub itself for source code highlighting and code navigation.
Development
See the docs for more details.
lib.rs
:
This crate provides elixir language support for the tree-sitter parsing library.
Typically, you will use the language function to add this language to a tree-sitter Parser, and then use the parser to parse some code:
let code = "";
let mut parser = tree_sitter::Parser::new();
parser.set_language(tree_sitter_elixir::language()).expect("Error loading elixir grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~2.8–4MB
~72K SLoC