mirror of
https://github.com/neovim/neovim.git
synced 2026-08-30 19:11:52 +00:00
fix(treesitter): logger memory leak
This commit is contained in:
committed by
Lewis Russell
parent
e3ce025e55
commit
8179d68dc1
@@ -9,10 +9,13 @@ local pcall_err = helpers.pcall_err
|
||||
local feed = helpers.feed
|
||||
local is_os = helpers.is_os
|
||||
|
||||
before_each(clear)
|
||||
|
||||
describe('treesitter parser API', function()
|
||||
clear()
|
||||
before_each(function()
|
||||
clear()
|
||||
exec_lua[[
|
||||
vim.g.__ts_debug = 1
|
||||
]]
|
||||
end)
|
||||
|
||||
it('parses buffer', function()
|
||||
insert([[
|
||||
@@ -629,7 +632,6 @@ int x = INT_MAX;
|
||||
describe("when parsing regions independently", function()
|
||||
it("should inject a language", function()
|
||||
exec_lua([[
|
||||
vim.g.__ts_debug = 1
|
||||
parser = vim.treesitter.get_parser(0, "c", {
|
||||
injections = {
|
||||
c = "(preproc_def (preproc_arg) @c) (preproc_function_def value: (preproc_arg) @c)"}})
|
||||
|
||||
Reference in New Issue
Block a user