ldoc
ldoc copied to clipboard
Inline reference to Class (@type)
trafficstars
When I have documented Lua table I can reference it with @{} and links are correctly generated, example:
--- My module
-- @module mymodule
--- Test function with reference to my table @{mymodule.mytable}
function t() end
--- My new table
mytable = {}
But when I want to reference a class then links do not work (although links are generated without error/warnings) due to "Class_" prefix in class name, example:
--- My module
-- @module mymodule
--- Test function with reference to my table @{mymodule.MyClass}
function t() end
--- My new class
-- @type MyClass
MyClass = {}
Have I just missed something in the doc or this is a bug?
I confirm this bug, it is quite annoying, since it generates pages with broken anchor links :(
In my testing this seems to have been fixed at some point. Please do comment if I've missed something and there is a test case that still needs fixing.