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 if args.module == true then
file_list[1]:dump(args.verbose) file_list[1]:dump(args.verbose)
else else
local fun = module_list[1].items.by_name[args.module] local M,name = module_list[1], args.module
if not fun then quit(quote(args.module).." is not part of "..quote(args.file)) end 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) fun:dump(true)
end end
return return

View File

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