From 3a2f0d8d16025cc0732939d55ad61aa278bea36b Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 22 May 2013 11:35:48 -0400 Subject: Fixed tags for global tables within modules; modules/lua/adeptsensedoc.lua --- modules/lua/adeptsensedoc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/lua') diff --git a/modules/lua/adeptsensedoc.lua b/modules/lua/adeptsensedoc.lua index d1a436b8..7bcd57a5 100644 --- a/modules/lua/adeptsensedoc.lua +++ b/modules/lua/adeptsensedoc.lua @@ -230,7 +230,8 @@ function M.start(doc) local module = module -- define locally so any modification stays local if t:find('^_G%.') then module, t = t:match('^_G%.(.-)%.?([^%.]+)$') end if not module then print(table.name) end - local ext_fields = module == '_G' and '' or 'class:'..module + local ext_fields = (module == '_G' or module == '') and '' or + 'class:'..module write_tag(ctags, t, 't', ext_fields) write_apidoc(apidoc, m, table) -- Tag the fields of the tables. -- cgit v1.2.3