#tree-sitter #highlighter #house

tree-house

A robust and cozy highlighter library for tree-sitter

3 unstable releases

0.1.0-beta.2 Mar 11, 2025
0.1.0-beta.1 Feb 27, 2025
0.0.0 Feb 12, 2025

#481 in Programming languages

Download history 107/week @ 2025-02-09 21/week @ 2025-02-16 139/week @ 2025-02-23 48/week @ 2025-03-02 102/week @ 2025-03-09 16/week @ 2025-03-16

305 downloads per month

MPL-2.0 license

665KB
17K SLoC

C 12K SLoC // 0.1% comments Rust 5K SLoC // 0.0% comments Shell 10 SLoC

tree-house

This repository contains a number of crates used by the Helix editor for integration with the tree-sitter C library.

  • bindings/ contains the tree-house-bindings crate which provides Rust bindings over the C library.
  • highlighter/ contains the tree-house crate which exposes a robust highlighter and query iterator for working across [injections].
  • skidder/ contains the skidder crate which exposes utilities for building a package repository for tree-sitter grammars.
  • cli/ contains the skidder-cli crate which wraps skidder in a command line interface.

Dependencies

~5–12MB
~121K SLoC