summaryrefslogtreecommitdiff
path: root/lua/nvim-treesitter/query.lua
diff options
context:
space:
mode:
authorThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-04-19 20:38:51 +0200
committerGitHub <noreply@github.com>2020-04-19 20:38:51 +0200
commit05be31024adc868af782c51dd63c6ccdfbfeb2a9 (patch)
tree45970745e65c16d52bcb93db4a4a466c6f9f105c /lua/nvim-treesitter/query.lua
parentf784a0addae1ac9d637d4655cd9095465f103374 (diff)
parentd25549917de8047eb91d6f56ee2bdcd5e667d6ae (diff)
Merge pull request #3 from vigoux/feature/locals
Add locals handling
Diffstat (limited to 'lua/nvim-treesitter/query.lua')
-rw-r--r--lua/nvim-treesitter/query.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/query.lua b/lua/nvim-treesitter/query.lua
index be650c79..e9f671f9 100644
--- a/lua/nvim-treesitter/query.lua
+++ b/lua/nvim-treesitter/query.lua
@@ -54,7 +54,7 @@ function M.iter_prepared_matches(query, qnode, bufnr, start_row, end_row)
local name = query.captures[id] -- name of the capture in the query
if name ~= nil then
local path = split(name)
- insert_to_path(prepared_match, path, node)
+ insert_to_path(prepared_match, path, { node=node })
end
end