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

Download history 638/week @ 2024-01-06 808/week @ 2024-01-13 895/week @ 2024-01-20 1384/week @ 2024-01-27 1001/week @ 2024-02-03 986/week @ 2024-02-10 1148/week @ 2024-02-17 1029/week @ 2024-02-24 1010/week @ 2024-03-02 912/week @ 2024-03-09 842/week @ 2024-03-16 1115/week @ 2024-03-23 947/week @ 2024-03-30 1127/week @ 2024-04-06 833/week @ 2024-04-13 806/week @ 2024-04-20

3,871 downloads per month
Used in 2 crates

Apache-2.0

13MB
438K SLoC

C 437K SLoC // 0.0% comments JavaScript 716 SLoC // 0.1% comments Scheme 172 SLoC // 0.2% comments Rust 36 SLoC // 0.1% comments

tree-sitter-elixir

Test

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