module not added with sensible line number - causes crash on warning

This commit is contained in:
steve donovan 2011-08-27 10:11:41 +02:00
parent def3cc398a
commit 6832e1de2d
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ local function parse_file(fname,lang, package)
local function add_module(tags,module_found,old_style)
tags.name = module_found
tags.class = 'module'
local item = F:new_item(tags,pcall(lineno) or 1)
local item = F:new_item(tags,lineno())
item.old_style = old_style
end