Merge pull request #22191 from lewis6991/feat/playground_imp

feat(treesitter): playground improvements
This commit is contained in:
Lewis Russell
2023-02-13 10:54:03 +00:00
committed by GitHub
3 changed files with 39 additions and 22 deletions

View File

@@ -82,7 +82,7 @@ describe('treesitter language API', function()
command("set filetype=borklang")
-- Should throw an error when filetype changes to borklang
eq(".../language.lua:0: no parser for 'borklang' language, see :help treesitter-parsers",
pcall_err(exec_lua, "new_parser = vim.treesitter.get_parser(0)"))
pcall_err(exec_lua, "new_parser = vim.treesitter.get_parser(0, 'borklang')"))
end)
it('retrieve the tree given a range', function ()