[mini.doc] ---@module
is included in automated documentation strangely
#1228
Labels
---@module
is included in automated documentation strangely
#1228
Contributing guidelines
Module(s)
mini.doc
Description
Related to #1227
A lua file such as
Ends up looking this this
The documentation of mini.doc recommends
*Foo*
syntax for defining module names (which does syntax-highlight in vimdocs as expected) so I see this extra'my_module'
as an unintended extra. It'd be nice to have mini.doc ignore these---@module 'foo.'
lines and incorporate them more holistically (see #1227 for details)Neovim version
NVIM v0.11.0-dev-345+g3e6cec0be
Steps to reproduce
nvim -nu minimal.lua
:lua require("mini.doc").generate({vim.fn.expand("%:p")}, "/tmp/out2.txt", {})
"/tmp/out2.txt"
fileExpected behavior
The line that contains
---@module 'foo.bar.fizz.buzz'
is not rendered in the output. And possibly the newlines leading up to it removed as well unless there's non-whitespace comment lines after it. Basically pretend it isn't there.Actual behavior
The
@module
annotation gets stripped and its remaining text is accidentally in the output.The text was updated successfully, but these errors were encountered: