Debian Codegraph @

Xtree-house/highlighter/CHANGELOG.md

raw symbols SCIP
1 # Changelog
2
3 All notable changes to this project will be documented in this file.
4
5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
8 <!-- ## [Unreleased] -->
9
10 ## [v0.4.0] - 2026-05-31
11
12 ### Added
13
14 * Derived `Hash` for `Highlight` ([bd161d96fac8](https://github.com/helix-editor/tree-house/commit/bd161d96fac8))
15 * Derived `Clone` for `Syntax` ([0fe37c6cc48b](https://github.com/helix-editor/tree-house/commit/0fe37c6cc48b))
16 * Added `QueryMatchIter`, an iterator across injection layers that yields entire query matches rather than individual captures ([85e8877](https://github.com/helix-editor/tree-house/commit/85e8877))
17
18 ### Changed
19
20 * `LayerData::injection_at_byte_idx` and `LayerData::injections_at_byte_idx` now correctly treat injection ranges as exclusive-end: a byte index equal to a range's end is no longer considered part of that range ([0f70c26d](https://github.com/helix-editor/tree-house/commit/0f70c26d))
21 * Non-`@local.*` captures in `locals.scm` no longer override `highlights.scm` highlights. Such captures now act as discards: they cancel a pending `@local.reference` resolution for the same node without affecting the `highlights.scm` result. Query authors should replace workaround highlight captures in `locals.scm` with a discard capture (e.g. `@_`) ([4501ded1](https://github.com/helix-editor/tree-house/commit/4501ded1))
22 * The required version of `tree-house-bindings` has been updated to v0.3, which includes breaking changes to parsing functions
23
24 ### Fixed
25
26 * Fixed a panic in `Highlighter::advance` when multiple captures match the same node and more than one resolves to no highlight in the current theme ([5734850e](https://github.com/helix-editor/tree-house/commit/5734850e), [helix#14751](https://github.com/helix-editor/helix/issues/14751), [#37](https://github.com/helix-editor/tree-house/issues/37))
27 * Fixed a silent bug where a child node's capture could replace an ancestor node's highlight when they share an end byte ([5734850e](https://github.com/helix-editor/tree-house/commit/5734850e))
28
29 ## [v0.3.0] - 2025-06-16
30
31 ### Fixed
32
33 * Fixed a bug where a parent node's first child being captured before the parent node caused the list of active highlights to become out-of-order.
34 * Fixed an issue where a combined injection would not have its active highlights retained until the next injection range if that injection range did not have any captures or injections itself.
35
36 ### Updated
37
38 * The minimum required Rust version has been increased to 1.82.
39
40 ## [v0.2.0] - 2025-06-06
41
42 ### Added
43
44 * Added `Syntax::layers_for_byte_range`
45 * Added `TreeCursor::reset`
46 * Added an iterator for recursively walking over the nodes in a `TreeCursor`: `TreeRecursiveWalker`
47
48 ### Changed
49
50 * `InactiveQueryCursor::new` now takes the byte range and match limit as parameters
51
52 ### Fixed
53
54 * Included `LICENSE` in the crate package
55 * Fixed an issue where a combined injection layer could be queried multiple times by `QueryIter`
56 * Fixed an issue where a combined injection layer would not be re-parsed when an injection for the layer was removed by an edit
57
58 ## [v0.1.0] - 2025-05-13
59
60 ### Added
61
62 * Initial publish
63