Issue #61 sorted - not using Tags.add consistently

This commit is contained in:
steve donovan 2013-05-06 11:38:20 +02:00
parent 5beb1f048a
commit a3cb09c098
3 changed files with 7 additions and 4 deletions

View File

@ -744,7 +744,6 @@ end
Module.warning, Module.error = Item.warning, Item.error
-------- Resolving References -----------------
function Module:hunt_for_reference (packmod, modules)

View File

@ -70,6 +70,7 @@ local function parse_colon_tags (text)
return preamble,tag_items
end
-- Tags are stored as an ordered map
local Tags = {}
Tags.__index = Tags
@ -79,8 +80,7 @@ function Tags.new (t)
end
function Tags:add (tag,value)
self[tag] = value
--print('adding',tag,value)
rawset(self,tag,value)
self._order:append(tag)
end
@ -335,7 +335,7 @@ local function parse_file(fname, lang, package, args)
end
end
if is_local or tags['local'] then
tags['local'] = true
tags:add('local',true)
end
if tags.name then
current_item = F:new_item(tags,line)

View File

@ -3,6 +3,10 @@
-- Description here
----
--- documented, but private
local function question ()
end
--- answer to everything.
-- @return magic number
local function answer ()