Codebase list lua-ldoc / 3f32313
#158 summary line lost with @type tag steve donovan 9 years ago
4 changed file(s) with 4 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
370370 section_description = this_section.summary..' '..(this_section.description or '')
371371 this_section.summary = ''
372372 elseif item.tags.within then
373 section_description = item.tags.within
374 item.section = section_description
373 item.section = item.tags.within
375374 else
376375 if item.type == 'function' or item.type == 'lfunction' then
377376 section_description = "Methods"
379378 item.section = item.type
380379 end
381380 elseif item.tags.within then -- ad-hoc section...
382 section_description = item.tags.within
383 item.section = section_description
381 item.section = item.tags.within
384382 else -- otherwise, just goes into the default sections (Functions,Tables,etc)
385383 item.section = item.type;
386384 end
131131 # for kind, items in module.kinds() do
132132 # local kitem = module.kinds:get_item(kind)
133133 <h2><a name="$(no_spaces(kind))"></a>$(kind)</h2>
134 #-- $(M(module.kinds:get_section_description(kind),nil))
134 $(M(module.kinds:get_section_description(kind),nil))
135135 # if kitem then
136136 $(M(ldoc.descript(kitem),kitem))
137137 # if kitem.usage then
+0
-2
ldoc/project.ldoc.mode less more
0 mode=lua
1 tabs=use=false,size=3
22 -- @module type
33
44 ----
5 -- Our class.
5 -- Our class. Any function or table in this section belongs to `Bonzo`
66 -- @type Bonzo
77
88 ----