nvim-treesitter/lua/nvim-treesitter
Stephan Seitz 994e42fac4 Fix: avoid overwriting tables in insert_to_path
The following query will result in matches with only one node though it
requires two nodes to be a match.

```scheme
(function_definition
 (comment) @function.inner.start
  body: (block) @function.inner)
```
Why? First `insert_to_path` is called for `@function.inner.start` which
will result int the following table.

```lua
{ function = { inner = { start { node } } } }
```
`insert_to_path` will overwrite the result
```lua
{ function = { inner = { node  } } }
```

Related #552
2020-10-16 13:48:59 +02:00
..
caching.lua fix(modules): do not reattach if already attached 2020-08-22 06:07:21 -05:00
configs.lua Remove textobjects module 2020-10-04 14:20:20 +02:00
fold.lua fix(folds): has_fold -> has_folds 2020-09-16 10:02:37 +02:00
health.lua fix(checkhealth): use pcall to check for syntax errors in query files 2020-09-20 10:37:06 +02:00
highlight.lua fix(highlights): use new highlighter interface 2020-10-13 09:25:09 +02:00
incremental_selection.lua Incremental selection: fix skipping some nodes 2020-09-07 18:24:55 +02:00
info.lua Completion: use custom instead of customlist 2020-09-05 19:29:46 +02:00
install.lua Shorten module reference shell_command_selectors to shell. 2020-10-06 19:08:42 +02:00
locals.lua fix(locals): add nil guard for definition id creation 2020-08-25 14:35:08 +02:00
parsers.lua Remove get_parser logic 2020-10-16 13:48:24 +02:00
query.lua Fix: avoid overwriting tables in insert_to_path 2020-10-16 13:48:59 +02:00
query_predicates.lua preds: declare set! predicate 2020-09-03 18:19:18 +02:00
shell_command_selectors.lua Code Refactor 2020-10-06 19:08:42 +02:00
ts_utils.lua feat(refactor.navigation): add navigation.goto_{next,previous}_usage 2020-08-31 18:56:41 +02:00
utils.lua chore: dedup join_paths <-> join_path 2020-09-28 17:40:34 +02:00