#incremental #parsing #css

tree-sitter-css

css grammar for the tree-sitter parsing library

1 unstable release

0.19.0 Dec 10, 2022

#91 in Text editors

Download history 28/week @ 2022-12-08 6/week @ 2022-12-15 102/week @ 2022-12-22 387/week @ 2022-12-29 876/week @ 2023-01-05 1194/week @ 2023-01-12 843/week @ 2023-01-19 420/week @ 2023-01-26 157/week @ 2023-02-02 99/week @ 2023-02-09 74/week @ 2023-02-16 121/week @ 2023-02-23 83/week @ 2023-03-02 107/week @ 2023-03-09 105/week @ 2023-03-16

425 downloads per month
Used in 3 crates

MIT license

290KB
10K SLoC

C 9K SLoC JavaScript 308 SLoC // 0.0% comments Scheme 52 SLoC Rust 35 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

Build Status Build status

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