lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I think you need the @class and @name tags before using @field

See this code
https://github.com/Tieske/LuaxPL/blob/master/src/xpl/classes/xplmessage.lua
that works with LuaDoc and the @field tag

Thijs

> -----Original Message-----
> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org]
> On Behalf Of HyperHacker
> Sent: dinsdag 28 februari 2012 18:41
> To: Lua mailing list
> Subject: How to use @field in LuaDoc?
> 
> I can't seem to find any info about how to document tables using
> LuaDoc. I stuck this in one of my .luadoc files:
> 
> --- asdf
> -- @field blah what is this I don't even
> bananas = {
> 	blah = 123
> }
> 
> but it doesn't show up in the document at all. I assume .luadoc files
> are parsed the same as Lua source files?
> 
> --
> Sent from my toaster.