aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_vimdoc.lua
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2024-03-16 17:11:42 +0000
committerLewis Russell <me@lewisr.dev>2024-03-16 19:26:10 +0000
commit14e4b6bbd8640675d7393bdeb3e93d74ab875ff1 (patch)
tree3e48d63a51e5ff90b9d47deccc86b22c43fc5fcf /scripts/gen_vimdoc.lua
parent924a7ef8bb3b74eccbffd48bc1a283d3867b8119 (diff)
downloadrneovim-14e4b6bbd8640675d7393bdeb3e93d74ab875ff1.tar.gz
rneovim-14e4b6bbd8640675d7393bdeb3e93d74ab875ff1.tar.bz2
rneovim-14e4b6bbd8640675d7393bdeb3e93d74ab875ff1.zip
refactor(lua): type annotations
Diffstat (limited to 'scripts/gen_vimdoc.lua')
-rwxr-xr-xscripts/gen_vimdoc.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/gen_vimdoc.lua b/scripts/gen_vimdoc.lua
index b3b211d5a6..cc2dc99237 100755
--- a/scripts/gen_vimdoc.lua
+++ b/scripts/gen_vimdoc.lua
@@ -488,10 +488,12 @@ local function inline_type(obj, classes)
local desc_append = {}
for _, f in ipairs(cls.fields) do
- local fdesc, default = get_default(f.desc)
- local fty = render_type(f.type, nil, default)
- local fnm = fmt_field_name(f.name)
- table.insert(desc_append, table.concat({ '-', fnm, fty, fdesc }, ' '))
+ if not f.access then
+ local fdesc, default = get_default(f.desc)
+ local fty = render_type(f.type, nil, default)
+ local fnm = fmt_field_name(f.name)
+ table.insert(desc_append, table.concat({ '-', fnm, fty, fdesc }, ' '))
+ end
end
desc = desc .. '\n' .. table.concat(desc_append, '\n')