It seems that find_by_selector doesn’t return regions for nested scopes.
e.g.
function foo()
if true then
if false then
print 1
end
end
end
Although there are two if blocks, and the scope name correctly identifies them both when the cursor is inside the inner if, find_by_regions only returns one region (the outer one) for the ‘if’ selector.
Is there a formal way to report issues like this?