#tree-sitter #incremental #javascript-parser

tree-sitter-bibtex

bibtex grammar for the tree-sitter parsing library

2 unstable releases

0.1.0 Jul 6, 2024
0.0.1 Jul 6, 2024

#98 in #javascript-parser

MIT license

65KB
2K SLoC

C 2K SLoC JavaScript 111 SLoC // 0.1% comments Scheme 36 SLoC Rust 31 SLoC // 0.5% comments

tree-sitter-bibtex

CI

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