2 unstable releases
0.1.0 | Jul 6, 2024 |
---|---|
0.0.1 | Jul 6, 2024 |
#98 in #javascript-parser
65KB
2K
SLoC
tree-sitter-bibtex
BibTeX grammar for tree-sitter. This grammar finds use in the TexLab language server.
lib.rs
:
This crate provides bibtex 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_bibtex::language()).expect("Error loading bibtex grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~2.8–4MB
~76K SLoC