docs(builtin): small fixes (#24861)

Also make gen_eval_files.lua render vimdoc helpExamples properly if the line
begins with the `>` marker.
This commit is contained in:
Sean Dewar
2023-08-24 13:29:40 +01:00
committed by GitHub
parent 53170579ce
commit daf7abbc42
4 changed files with 10 additions and 11 deletions

View File

@@ -437,6 +437,8 @@ local function render_eval_doc(f, fun, write)
l = l:gsub('^ ', '')
if vim.startswith(l, '<') and not l:match('^<[^ \t]+>') then
write('<\t\t' .. l:sub(2))
elseif l:match('^>[a-z0-9]*$') then
write(l)
else
write('\t\t' .. l)
end