aboutsummaryrefslogtreecommitdiff
path: root/test/functional/treesitter/node_spec.lua
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-01-27 16:16:06 +0100
committerGitHub <noreply@github.com>2025-01-27 16:16:06 +0100
commiteb60cd74fb5caa997e6253bef6a1f0b58e1b6ec6 (patch)
treebde2e7d1474d477d8408fe183d16aaa8d7de5bcf /test/functional/treesitter/node_spec.lua
parentb288fa8d62c3f129d333d3ea6abc3234039cad37 (diff)
downloadrneovim-eb60cd74fb5caa997e6253bef6a1f0b58e1b6ec6.tar.gz
rneovim-eb60cd74fb5caa997e6253bef6a1f0b58e1b6ec6.tar.bz2
rneovim-eb60cd74fb5caa997e6253bef6a1f0b58e1b6ec6.zip
build(deps)!: bump tree-sitter to HEAD, wasmtime to v29.0.1 (#32200)
Breaking change: `ts_node_child_containing_descendant()` was removed Breaking change: tree-sitter 0.25 (HEAD) required
Diffstat (limited to 'test/functional/treesitter/node_spec.lua')
-rw-r--r--test/functional/treesitter/node_spec.lua26
1 files changed, 0 insertions, 26 deletions
diff --git a/test/functional/treesitter/node_spec.lua b/test/functional/treesitter/node_spec.lua
index 9839022c5e..235bf7861c 100644
--- a/test/functional/treesitter/node_spec.lua
+++ b/test/functional/treesitter/node_spec.lua
@@ -163,32 +163,6 @@ describe('treesitter node API', function()
eq(3, lua_eval('child:byte_length()'))
end)
- it('child_containing_descendant() works', function()
- insert([[
- int main() {
- int x = 3;
- }]])
-
- exec_lua(function()
- local tree = vim.treesitter.get_parser(0, 'c'):parse()[1]
- _G.root = tree:root()
- _G.main = _G.root:child(0)
- _G.body = _G.main:child(2)
- _G.statement = _G.body:child(1)
- _G.declarator = _G.statement:child(1)
- _G.value = _G.declarator:child(1)
- end)
-
- eq(lua_eval('main:type()'), lua_eval('root:child_containing_descendant(value):type()'))
- eq(lua_eval('body:type()'), lua_eval('main:child_containing_descendant(value):type()'))
- eq(lua_eval('statement:type()'), lua_eval('body:child_containing_descendant(value):type()'))
- eq(
- lua_eval('declarator:type()'),
- lua_eval('statement:child_containing_descendant(value):type()')
- )
- eq(vim.NIL, lua_eval('declarator:child_containing_descendant(value)'))
- end)
-
it('child_with_descendant() works', function()
insert([[
int main() {