mirror of
https://github.com/neovim/neovim.git
synced 2026-05-04 13:05:05 +00:00
fix(treesitter): do not error on empty filetype
Ignore instead
This commit is contained in:
@@ -36,11 +36,6 @@ describe('treesitter language API', function()
|
||||
pcall_err(exec_lua, 'vim.treesitter.add("/foo/")'))
|
||||
end)
|
||||
|
||||
it('shows error for invalid filetype', function()
|
||||
eq('.../language.lua:0: \'\' is not a valid filetype',
|
||||
pcall_err(exec_lua, [[vim.treesitter.add('foo', { filetype = '' })]]))
|
||||
end)
|
||||
|
||||
it('inspects language', function()
|
||||
local keys, fields, symbols = unpack(exec_lua([[
|
||||
local lang = vim.treesitter.inspect_language('c')
|
||||
|
||||
Reference in New Issue
Block a user