diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/adeptsensedoc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/adeptsensedoc.lua b/scripts/adeptsensedoc.lua index ddf24fc6..88d3eba9 100644 --- a/scripts/adeptsensedoc.lua +++ b/scripts/adeptsensedoc.lua @@ -134,7 +134,8 @@ function start(doc) if field then add_field() end field, docs = {}, {} local name, doc = line:match('^%-%- %* `([^`]+)`([^\r\n]*)') - field.module = module or name:match('^[^%.]+') + field.module = name:match('^_G%.([%w_]+)%.') or module or + name:match('^[^%.]+') field.name = name:match('[^%.]+$') if doc ~= '' then field.modifier, doc = doc:match('^%s*([^:]*):?%s*(.*)$') |