aboutsummaryrefslogtreecommitdiffstats
path: root/queries/javascript
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2020-10-03 04:22:25 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2020-10-16 13:48:59 +0200
commit994e42fac46399969e4032ffe9815ac727db5514 (patch)
tree4a308c4324b87ff8b4b29f51346255ffbca6b23e /queries/javascript
parentRemove get_parser logic (diff)
downloadnvim-treesitter-994e42fac46399969e4032ffe9815ac727db5514.tar
nvim-treesitter-994e42fac46399969e4032ffe9815ac727db5514.tar.gz
nvim-treesitter-994e42fac46399969e4032ffe9815ac727db5514.tar.bz2
nvim-treesitter-994e42fac46399969e4032ffe9815ac727db5514.tar.lz
nvim-treesitter-994e42fac46399969e4032ffe9815ac727db5514.tar.xz
nvim-treesitter-994e42fac46399969e4032ffe9815ac727db5514.tar.zst
nvim-treesitter-994e42fac46399969e4032ffe9815ac727db5514.zip
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
Diffstat (limited to 'queries/javascript')
0 files changed, 0 insertions, 0 deletions