From 2f85bbe61513d12c746641fed6ad07559bd95719 Mon Sep 17 00:00:00 2001 From: altermo <107814000+altermo@users.noreply.github.com> Date: Mon, 26 Feb 2024 11:42:51 -0800 Subject: feat!: rewrite TOhtml in lua Co-authored-by: wookayin Co-authored-by: clason Co-authored-by: Lewis Russell --- scripts/gen_vimdoc.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts') diff --git a/scripts/gen_vimdoc.lua b/scripts/gen_vimdoc.lua index 290cd83fbc..8acae66f49 100755 --- a/scripts/gen_vimdoc.lua +++ b/scripts/gen_vimdoc.lua @@ -161,6 +161,7 @@ local config = { 'iter.lua', 'snippet.lua', 'text.lua', + 'tohtml.lua', }, files = { 'runtime/lua/vim/iter.lua', @@ -189,6 +190,7 @@ local config = { 'runtime/lua/vim/_meta/lpeg.lua', 'runtime/lua/vim/_meta/re.lua', 'runtime/lua/vim/_meta/spell.lua', + 'runtime/lua/tohtml.lua', }, fn_xform = function(fun) if contains(fun.module, { 'vim.uri', 'vim.shared', 'vim._editor' }) then @@ -232,6 +234,9 @@ local config = { then return 'VIM.' .. name:upper() end + if name == 'tohtml' then + return 'Lua module: tohtml' + end return 'Lua module: vim.' .. name end, helptag_fmt = function(name) @@ -239,6 +244,8 @@ local config = { return '*lua-vim*' elseif name == '_options' then return '*lua-vimscript*' + elseif name == 'tohtml' then + return '*tohtml*' end return '*vim.' .. name:lower() .. '*' end, -- cgit