#firebase

tree-sitter-rules

firebase rules grammar for the tree-sitter parsing library

4 releases

0.0.4 Feb 4, 2024
0.0.3 Feb 4, 2024
0.0.2 Feb 3, 2024
0.0.1 Jan 29, 2024

#478 in Text editors

MIT license

170KB
6.5K SLoC

C 6K SLoC JavaScript 319 SLoC // 0.0% comments Rust 31 SLoC // 0.5% comments

Tree-sitter firebase rules

firebase rules grammar for the tree-sitter parsing library


lib.rs:

This crate provides rules 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_rules::language()).expect("Error loading rules grammar");
let tree = parser.parse(code, None).unwrap();

Dependencies

~2.8–4MB
~73K SLoC