1 unstable release
0.19.0 | Dec 21, 2021 |
---|
#160 in Text editors
1,644 downloads per month
Used in 5 crates
71KB
2.5K
SLoC
tree-sitter-html
HTML grammar for tree-sitter.
References
lib.rs
:
This crate provides html 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_html::language()).expect("Error loading html grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~1.4–2MB
~53K SLoC