#tree-sitter #asciidoc #incremental #parser #adoc

tree-sitter-asciidoc-inline

asciidocInline grammar for tree-sitter

1 unstable release

0.3.0 Jan 22, 2025

#486 in Text editors

Download history 116/week @ 2025-01-22

116 downloads per month

Apache-2.0

1.5MB
40K SLoC

C 39K SLoC // 0.0% comments JavaScript 284 SLoC // 0.0% comments Scheme 59 SLoC Rust 33 SLoC // 0.2% comments

tree-sitter-asciidoc

asciidoc grammar for tree-sitter.


lib.rs:

This crate provides asciidocInline 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_asciidoc_inline::language()).expect("Error loading asciidocInline grammar");
let tree = parser.parse(code, None).unwrap();
assert!(!tree.root_node().has_error());

Dependencies

~3–4MB
~80K SLoC