12 releases (7 breaking)
0.8.0 | Jun 25, 2025 |
---|---|
0.7.4 | Mar 12, 2025 |
0.0.1 | Aug 21, 2024 |
#2665 in Parser implementations
139 downloads per month
585KB
25K
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
~3–4.5MB
~82K SLoC