aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen_eval_files.lua
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2023-08-24 13:29:40 +0100
committerGitHub <noreply@github.com>2023-08-24 13:29:40 +0100
commitdaf7abbc4238dc269e22dd431bc4b1627ef9b6a1 (patch)
tree2f4c1c126c012adb16fd4eabf36a6dda00c60268 /scripts/gen_eval_files.lua
parent53170579ce14ccbd777ab36a25a230a27aa4f7bd (diff)
downloadrneovim-daf7abbc4238dc269e22dd431bc4b1627ef9b6a1.tar.gz
rneovim-daf7abbc4238dc269e22dd431bc4b1627ef9b6a1.tar.bz2
rneovim-daf7abbc4238dc269e22dd431bc4b1627ef9b6a1.zip
docs(builtin): small fixes (#24861)
Also make gen_eval_files.lua render vimdoc helpExamples properly if the line begins with the `>` marker.
Diffstat (limited to 'scripts/gen_eval_files.lua')
-rwxr-xr-xscripts/gen_eval_files.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/gen_eval_files.lua b/scripts/gen_eval_files.lua
index e41054ed65..f8d69ce313 100755
--- a/scripts/gen_eval_files.lua
+++ b/scripts/gen_eval_files.lua
@@ -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