#incremental-parser #deb822 #parser #incremental

tree-sitter-deb822

deb822 grammar for the tree-sitter parsing library

4 releases (breaking)

0.4.0 Mar 7, 2025
0.3.0 May 27, 2024
0.2.1 Jun 30, 2023
0.2.0 Jun 30, 2023
0.1.0 Jun 22, 2023

#131 in Text editors

Download history 3/week @ 2024-12-05 5/week @ 2024-12-12 141/week @ 2025-03-06

141 downloads per month

MIT license

29KB
862 lines

tree-sitter-deb822

Debian 822 configuration grammar for tree-sitter.

References


lib.rs:

This crate provides deb822 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 = "Key: Value\n";
let mut parser = tree_sitter::Parser::new();
parser.set_language(tree_sitter_deb822::language()).expect("Error loading deb822 grammar");
let tree = parser.parse(code, None).unwrap();

Dependencies

~3–4.5MB
~82K SLoC