11 releases (6 breaking)

0.7.5 Apr 17, 2025
0.7.4 Mar 12, 2025
0.5.0 Jan 23, 2025
0.4.0 Jan 23, 2025
0.0.1 Aug 21, 2024

#1812 in Parser implementations

Download history 366/week @ 2025-01-19 35/week @ 2025-01-26 2/week @ 2025-02-02 300/week @ 2025-03-02 252/week @ 2025-03-09 27/week @ 2025-03-16 140/week @ 2025-04-13 20/week @ 2025-04-20

160 downloads per month

Apache-2.0

585KB
25K SLoC

C 25K SLoC Scheme 127 SLoC Rust 32 SLoC // 0.2% comments JavaScript 22 SLoC

This crate provides JinjaInline 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 = r#"
"#;
let mut parser = tree_sitter::Parser::new();
parser.set_language(&tree_sitter_jinja_inline::language()).expect("Error loading JinjaInline grammar");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());

tree-sitter-jinja

Jinja and Jinja inline grammar for tree-sitter.

[!NOTE] inline statement starts with # .

Dependencies

~2.8–4.5MB
~81K SLoC