helix-mirror/helix-core
Michael Davis 44e113cb76
tree-sitter: Update parent links on reused injection layers (#10978)
When parsing injections, we skip adding a new layer if there is an
existing layer covering the same range. When doing so we did not update
the parent layer ID, so some layers could have `parent` layer IDs that
pointed to a layer that no longer existed in the `layers` HopSlotMap
which could cause a panic when using `A-o`.

To fix this we update the `parent` pointer for both newly created
injection layers and reused ones.
2024-06-23 10:06:15 +09:00
..
src tree-sitter: Update parent links on reused injection layers (#10978) 2024-06-23 10:06:15 +09:00
tests Resolve new Clippy lints 2024-05-07 15:15:52 -04:00
.gitignore Initial import. 2020-05-20 18:14:51 +09:00
Cargo.toml Revert "Replace unicode-general-category with icu-properties (#10989)" (#11006) 2024-06-23 10:05:53 +09:00