mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
fix: update interface following languagetree merge (#687)
This commit is contained in:
parent
3c07232d07
commit
808765a6c8
11 changed files with 16 additions and 204 deletions
|
|
@ -57,7 +57,7 @@ end
|
|||
|
||||
function TSRange:parent(range)
|
||||
local parser = parsers.get_parser(self.buf, parsers.get_buf_lang(range))
|
||||
local root = parser:parse():root()
|
||||
local root = parser:parse()[1]:root()
|
||||
return root:named_descendant_for_range(self.start_pos[1], self.start_pos[2], self.end_pos[1], self.end_pos[2])
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue