diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2011-06-23 22:00:06 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2011-06-23 22:00:06 -0400 |
commit | 79a37f07e3f57694a436db9a25e296c8d177041a (patch) | |
tree | 93d5253984854f86a86bb5659147097683135bd2 /scripts | |
parent | c84e1e9d48b6113cb4eb239344f2ad3a4205ce49 (diff) |
Fix absolute field tags; scripts/adeptsense.lua
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*(.*)$') |