fix(treesitter): return correct match table in iter_captures()

This commit is contained in:
Lewis Russell
2024-03-25 22:06:31 +00:00
committed by Lewis Russell
parent c4e1930851
commit 7d97150084
7 changed files with 123 additions and 34 deletions

View File

@@ -32,10 +32,11 @@ local M = {}
--- first n arguments passed to {fn}.
---
--- @param fn F Function to memoize.
--- @param strong? boolean Do not use a weak table
--- @return F # Memoized version of {fn}
--- @nodoc
function M._memoize(hash, fn)
return require('vim.func._memoize')(hash, fn)
function M._memoize(hash, fn, strong)
return require('vim.func._memoize')(hash, fn, strong)
end
return M