From 79a37f07e3f57694a436db9a25e296c8d177041a Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 23 Jun 2011 22:00:06 -0400 Subject: Fix absolute field tags; scripts/adeptsense.lua --- scripts/adeptsensedoc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') 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*(.*)$') -- cgit v1.2.3