aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-06-15 12:10:12 +0200
committerBjörn Linse <bjorn.linse@gmail.com>2019-09-28 14:55:43 +0200
commitc8f861b739b4703b1198dc1f88b09edbeb0d9f2e (patch)
tree747e445f9c559a6bb89fec4bed17bf67525fc335 /test/functional/lua
parent4ea5e63aa8c866b4fcc9d10f1a26078d2517f96a (diff)
downloadrneovim-c8f861b739b4703b1198dc1f88b09edbeb0d9f2e.tar.gz
rneovim-c8f861b739b4703b1198dc1f88b09edbeb0d9f2e.tar.bz2
rneovim-c8f861b739b4703b1198dc1f88b09edbeb0d9f2e.zip
tree-sitter: rename tree_sitter => treesitter for consistency
Diffstat (limited to 'test/functional/lua')
-rw-r--r--test/functional/lua/treesitter_spec.lua (renamed from test/functional/lua/tree_sitter_spec.lua)6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/lua/tree_sitter_spec.lua b/test/functional/lua/treesitter_spec.lua
index e25eb47a60..8916e59563 100644
--- a/test/functional/lua/tree_sitter_spec.lua
+++ b/test/functional/lua/treesitter_spec.lua
@@ -15,7 +15,7 @@ describe('tree-sitter API', function()
-- error tests not requiring a parser library
it('handles basic errors', function()
--eq({false, 'Error executing lua: vim.schedule: expected function'},
- -- meth_pcall(meths.execute_lua, "parser = vim.tree_sitter.create_parser(0, 'nosuchlang')", {}))
+ -- meth_pcall(meths.execute_lua, "parser = vim.treesitter.create_parser(0, 'nosuchlang')", {}))
@@ -34,7 +34,7 @@ describe('tree-sitter API', function()
local path = ts_path .. '/bin/c'..(iswin() and '.dll' or '.so')
exec_lua([[
local path = ...
- vim.tree_sitter.add_language(path,'c')
+ vim.treesitter.add_language(path,'c')
]], path)
end)
@@ -46,7 +46,7 @@ describe('tree-sitter API', function()
}]])
exec_lua([[
- parser = vim.tree_sitter.create_parser(0, "c")
+ parser = vim.treesitter.create_parser(0, "c")
tree = parser:parse_tree()
root = tree:root()
]])