1 unstable release
0.19.0 | Dec 10, 2022 |
---|
#91 in Text editors
425 downloads per month
Used in 3 crates
290KB
10K
SLoC
tree-sitter-css
This is a fork of the official tree-sitter-css repository This fork exists only to publish to crates.io because the official one wasn't and issues asking why were never responded to
CSS grammar for tree-sitter.
References
lib.rs
:
This crate provides css 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_css::language()).expect("Error loading css grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~1.3–1.9MB
~51K SLoC