3 unstable releases

0.2.0 Apr 8, 2024
0.1.1 Dec 4, 2023
0.1.0 Mar 14, 2023

#60 in Text editors

Download history 885/week @ 2024-01-18 1040/week @ 2024-01-25 1303/week @ 2024-02-01 947/week @ 2024-02-08 1149/week @ 2024-02-15 1121/week @ 2024-02-22 843/week @ 2024-02-29 1115/week @ 2024-03-07 709/week @ 2024-03-14 1160/week @ 2024-03-21 985/week @ 2024-03-28 1021/week @ 2024-04-04 989/week @ 2024-04-11 893/week @ 2024-04-18 836/week @ 2024-04-25 980/week @ 2024-05-02

3,814 downloads per month
Used in 3 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