diff options
| author | Riley Bruins <ribru17@hotmail.com> | 2025-05-10 10:07:43 -0700 |
|---|---|---|
| committer | Lewis Russell <me@lewisr.dev> | 2025-05-11 08:04:57 +0100 |
| commit | de45b8e2754f595eb675bd8068b4f9fc7af8d268 (patch) | |
| tree | 67915dd8dd250d086214b55edbd9238ea3dda1d6 /runtime/lua/vim/_extui.lua | |
| parent | bee45fc0e7801396951cd156c82953cbadc256b9 (diff) | |
| download | rneovim-de45b8e2754f595eb675bd8068b4f9fc7af8d268.tar.gz rneovim-de45b8e2754f595eb675bd8068b4f9fc7af8d268.tar.bz2 rneovim-de45b8e2754f595eb675bd8068b4f9fc7af8d268.zip | |
fix(treesitter): proper tree `contains()` logic with combined injections
**Problem:** `LanguageTree:contains()` considers any range within the
start of the first tree and end of the last tree as "within" the
language tree. In the case of combined injections, this is problematic
because we only want to consider ranges within any of the combined trees
as "contained" (as opposed to any range within the entire range spanned
by all combined trees).
**Solution:** Use a more discriminative check in
`LanguageTree:contains()`.
Diffstat (limited to 'runtime/lua/vim/_extui.lua')
0 files changed, 0 insertions, 0 deletions