Lua: mark some functions as "private"

Problem:  scripts/gen_vimdoc.py gets confused and tries to generate docs
          for `fn_index` and `func`.
Solution: Rename them to be private.
This commit is contained in:
Justin M. Keyes 2019-11-10 23:07:36 -08:00
parent 7a3d3257db
commit f59e1f58a2

View File

@ -261,14 +261,14 @@ end
-- vim.fn.{func}(...) -- vim.fn.{func}(...)
local function fn_index(t, key) local function _fn_index(t, key)
local function func(...) local function _fn(...)
return vim.call(key, ...) return vim.call(key, ...)
end end
t[key] = func t[key] = _fn
return func return _fn
end end
local fn = setmetatable({}, {__index=fn_index}) local fn = setmetatable({}, {__index=_fn_index})
local module = { local module = {
_update_package_paths = _update_package_paths, _update_package_paths = _update_package_paths,