mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -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
|
|
@ -179,7 +179,7 @@ function M.iter_group_results(bufnr, query_group, root)
|
|||
local parser = parsers.get_parser(bufnr, lang)
|
||||
if not parser then return function() end end
|
||||
|
||||
local root = root or parser:parse():root()
|
||||
local root = root or parser:parse()[1]:root()
|
||||
local start_row, _, end_row, _ = root:range()
|
||||
|
||||
-- The end row is exclusive so we need to add 1 to it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue