try harder with -m to resolve methods

This commit is contained in:
steve donovan 2013-08-24 15:39:41 +02:00
parent 3c72ea112e
commit 45cb21bcc1
2 changed files with 6 additions and 3 deletions

View File

@ -549,8 +549,12 @@ if args.module then
if args.module == true then
file_list[1]:dump(args.verbose)
else
local fun = module_list[1].items.by_name[args.module]
if not fun then quit(quote(args.module).." is not part of "..quote(args.file)) end
local M,name = module_list[1], args.module
local fun = M.items.by_name[name]
if not fun then
fun = M.items.by_name[M.mod_name..':'..name]
end
if not fun then quit(quote(name).." is not part of "..quote(args.file)) end
fun:dump(true)
end
return

View File

@ -121,7 +121,6 @@ function doc.module_info_tags ()
return List.iter(known_tags._module_info)
end
-- annotation tags can appear anywhere in the code and may contain any of these tags:
known_tags._annotation_tags = {
fixme = true, todo = true, warning = true