Michael Davis 778853ae64 highlighter: Avoid cloning injection properties
Cloning the properties can be avoided and it is relatively expensive in
terms of temporary allocations. The nice part of cloning was being able
to use `unwrap_or_default` to get default injection properties for
injections which don't use any `#set! injection.X` properties but we can
handle this where the properties are accessed instead.

Closes #12
2025-05-22 10:11:22 -04:00
2025-02-05 15:45:25 -05:00
2025-05-14 16:53:18 -04:00
2024-08-09 02:54:16 +02:00
2024-07-28 02:50:13 +02:00
2025-02-05 22:43:02 -05:00
2025-02-05 15:45:25 -05:00
2024-07-28 02:50:13 +02:00
2025-02-12 20:47:11 -05:00

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.
Description
Cozy Rust bindings to the tree-sitter C library and a robust highlighter
Readme MPL-2.0 1.2 MiB
Languages
Rust 98.4%
Nix 0.9%
Shell 0.7%