aboutsummaryrefslogtreecommitdiff
path: root/modules/lua
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lua')
-rw-r--r--modules/lua/adeptsensedoc.lua3
1 files changed, 2 insertions, 1 deletions
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.