Skip to content

Commit 9304f48

Browse files
zeertzjqdundargoc
authored andcommitted
build(gen_helptags): update check for example (neovim#35750)
Follow-up to ae588c1.
1 parent 668ae29 commit 9304f48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gen/gen_helptags.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ for _, fn in ipairs(files) do
4848
end
4949
end
5050

51-
if line == '>' or vim.endswith(line, ' >') then
51+
if line:find('^>[a-z0-9]*$') or line:find(' >[a-z0-9]*$') then
5252
in_example = true
5353
end
5454
end

0 commit comments

Comments
 (0)