ldoc documentation in LDT 1.3.1 [message #1727546] |
Wed, 23 March 2016 12:54  |
Eclipse User |
|
|
|
Hi,
I have a question how to document in LDT 1.3.1 properly in the code a type structure.
Imagine I have the following structures defined in LUA:
AI = {
skills = {
AVERAGE = 1,
HIGH = 2,
EXCELLENT = 3,
},
Task = {
SHOOT = 1,
EVADE = 2,
RUNAWAY=3,
}
}
Now, when i want to document the above structure in luadoc to make this structure available in code assist, how to i need to do that? I've been trying a lot of things, but just cannot find the right way to get the ldt to show the different options when i type "AI." and the CTRL-SPACE to get the different fields in this structure.
This is one of the constructions i've tried, without success:
--- @type AI
--
--- @type AI.skills
-- @field AVERAGE
-- @field HIGH
-- @field EXCELLENT
--- @type AI.Task
-- @field SHOOT
-- @field EVADE
-- @field RUNAWAY
The above is not working.
Does somebody know the correct construction in luadoc that works in ldt with codeassist?
Sven
|
|
|
|
|
Re: ldoc documentation in LDT 1.3.1 [message #1727599 is a reply to message #1727551] |
Thu, 24 March 2016 06:35  |
Eclipse User |
|
|
|
We try to be as compliant as possible with lua documentation standard (luadoc, ldoc), but we were limited by this language in particular about `typing`.
But I agree in a perfect world, this 3 languages should be unified or at least compliant.
|
|
|
Powered by
FUDForum. Page generated in 0.03638 seconds