aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-08-13 08:03:56 +0100
committerLewis Russell <me@lewisr.dev>2023-08-13 11:23:17 +0100
commit8179d68dc1a90f47bfb307d73e71adc98883ae00 (patch)
tree63a85309d84f07b2061f3388e3fec2f5f8c1c0c7 /test
parente3ce025e55d7567dfc8ba5505ef27f112e75a8ad (diff)
downloadrneovim-8179d68dc1a90f47bfb307d73e71adc98883ae00.tar.gz
rneovim-8179d68dc1a90f47bfb307d73e71adc98883ae00.tar.bz2
rneovim-8179d68dc1a90f47bfb307d73e71adc98883ae00.zip
fix(treesitter): logger memory leak
Diffstat (limited to 'test')
-rw-r--r--test/functional/treesitter/parser_spec.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/functional/treesitter/parser_spec.lua b/test/functional/treesitter/parser_spec.lua
index cc833a67cc..ae3b0483c5 100644
--- a/test/functional/treesitter/parser_spec.lua
+++ b/test/functional/treesitter/parser_spec.lua
@@ -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)"}})