mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
fix(treesitter): properly clip nested injections
This commit is contained in:
committed by
Lewis Russell
parent
a59b052857
commit
baabc35987
@@ -897,7 +897,7 @@ local function clip_regions(region1, region2)
|
||||
end
|
||||
|
||||
-- Advance the range that ends earlier
|
||||
if Range.cmp_pos.le(r1[3], r1[4], r2[3], r2[4]) then
|
||||
if Range.cmp_pos.le(r1[4], r1[5], r2[4], r2[5]) then
|
||||
i = i + 1
|
||||
else
|
||||
j = j + 1
|
||||
|
||||
Reference in New Issue
Block a user