mirror of
https://github.com/chenasraf/vim-matchup.git
synced 2026-05-18 01:38:57 +00:00
Update lua TS queries for upstream parser change, fix #204
This commit is contained in:
4
lua/treesitter-matchup/third-party/query.lua
vendored
4
lua/treesitter-matchup/third-party/query.lua
vendored
@@ -142,9 +142,9 @@ function M.iter_prepared_matches(query, qnode, bufnr, start_row, end_row)
|
||||
for id, node in pairs(match) do
|
||||
local name = query.captures[id] -- name of the capture in the query
|
||||
if name ~= nil then
|
||||
local path = split(name..'.node')
|
||||
local path = split(name .. ".node")
|
||||
insert_to_path(prepared_match, path, node)
|
||||
insert_to_path(prepared_match, split(name..'.metadata'), metadata)
|
||||
insert_to_path(prepared_match, split(name .. '.metadata'), metadata)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user