summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index 5b9bdfad..9b041870 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -224,6 +224,7 @@ local function parseIndexField(tp, parent)
return nil
end
nextToken()
+ local start = getFinish() - 1
local indexTP, index = peekToken()
if indexTP == 'name' then
local field = parseType(parent)
@@ -233,7 +234,7 @@ local function parseIndexField(tp, parent)
nextToken()
local class = {
type = tp,
- start = getStart(),
+ start = start,
finish = getFinish(),
parent = parent,
}