ldoc icon indicating copy to clipboard operation
ldoc copied to clipboard

Inline reference to Class (@type)

Open zjarkov opened this issue 10 years ago • 1 comments
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?

zjarkov avatar Jul 23 '15 15:07 zjarkov

I confirm this bug, it is quite annoying, since it generates pages with broken anchor links :(

flohgh avatar Dec 08 '15 14:12 flohgh

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.

alerque avatar May 04 '23 20:05 alerque