diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-04-19 14:55:08 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-04-19 17:28:59 +0200 |
| commit | 51ca6a5069d55d8ea658873cd11081a3658bdf24 (patch) | |
| tree | b3b3bef13c0fe6fdbfa86a924e07e7fd3af0a152 /lua | |
| parent | 6cab5c2d75fc8d538433db2c5a67a8e15d86c043 (diff) | |
fix(matches): better storage of nodes
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/nvim-treesitter/query.lua | 2 |
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 |
