24 | 24 |
class = 'id', name = 'id', pragma = 'id', alias = 'id', within = 'id',
|
25 | 25 |
copyright = 'S', summary = 'S', description = 'S', release = 'S', license = 'S',
|
26 | 26 |
fixme = 'S', todo = 'S', warning = 'S', raise = 'S',
|
27 | |
['local'] = 'N', export = 'N', private = 'N', constructor = 'N';
|
|
27 |
['local'] = 'N', export = 'N', private = 'N', constructor = 'N', static = 'N';
|
28 | 28 |
-- project-level
|
29 | 29 |
module = 'T', script = 'T', example = 'T', topic = 'T', submodule='T',
|
30 | 30 |
-- module-level
|
|
301 | 301 |
if doc.class_tag(stype) then
|
302 | 302 |
if not item.name:match '[:%.]' then -- not qualified
|
303 | 303 |
local class = this_section.name
|
304 | |
item.name = class..(not item.tags.constructor and ':' or '.')..item.name
|
|
304 |
local static = item.tags.constructor or item.tags.static
|
|
305 |
item.name = class..(not static and ':' or '.')..item.name
|
305 | 306 |
end
|
306 | 307 |
if stype == 'factory' then
|
307 | 308 |
if item.tags.private then to_be_removed = true
|
|
374 | 375 |
for tag in iter(tags) do
|
375 | 376 |
self:set_tag(tag,tags[tag])
|
376 | 377 |
end
|
377 | |
--for tag,value in pairs(tags) do print('tag',tag,value) end
|
378 | 378 |
end
|
379 | 379 |
|
380 | 380 |
function Item:add_to_description (rest)
|
|
398 | 398 |
end
|
399 | 399 |
self.tags[tag] = value
|
400 | 400 |
elseif ttype == TAG_ID then
|
401 | |
--print('id',tag,value)
|
402 | |
if type(value) ~= 'string' then
|
403 | |
-- such tags are _not_ multiple, e.g. name
|
404 | |
self:error("'"..tag.."' cannot have multiple values")
|
405 | |
else
|
406 | |
local id, rest = tools.extract_identifier(value)
|
407 | |
self.tags[tag] = id
|
408 | |
self:add_to_description(rest)
|
409 | |
end
|
|
401 |
if type(value) == 'table' then
|
|
402 |
if value.append then -- it was a List!
|
|
403 |
-- such tags are _not_ multiple, e.g. name
|
|
404 |
self:error("'"..tag.."' cannot have multiple values")
|
|
405 |
end
|
|
406 |
value = value[1]
|
|
407 |
end
|
|
408 |
local id, rest = tools.extract_identifier(value)
|
|
409 |
self.tags[tag] = id
|
|
410 |
self:add_to_description(rest)
|
410 | 411 |
elseif ttype == TAG_SINGLE then
|
411 | 412 |
self.tags[tag] = value
|
412 | 413 |
elseif ttype == TAG_FLAG then
|