Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tree-sitter: Update parent links on reused injection layers (helix-ed…
…itor#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.
- Loading branch information