mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
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
|
||
|---|---|---|
| .. | ||
| caching.lua | ||
| configs.lua | ||
| fold.lua | ||
| health.lua | ||
| highlight.lua | ||
| incremental_selection.lua | ||
| info.lua | ||
| install.lua | ||
| locals.lua | ||
| parsers.lua | ||
| query.lua | ||
| query_predicates.lua | ||
| shell_command_selectors.lua | ||
| ts_utils.lua | ||
| utils.lua | ||