diff options
| author | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-04-19 20:38:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-19 20:38:51 +0200 |
| commit | 05be31024adc868af782c51dd63c6ccdfbfeb2a9 (patch) | |
| tree | 45970745e65c16d52bcb93db4a4a466c6f9f105c /lua/nvim-treesitter/query.lua | |
| parent | f784a0addae1ac9d637d4655cd9095465f103374 (diff) | |
| parent | d25549917de8047eb91d6f56ee2bdcd5e667d6ae (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.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 |
