summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/newparser.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua
index 513868b0..187de9b3 100644
--- a/script/parser/newparser.lua
+++ b/script/parser/newparser.lua
@@ -1547,6 +1547,7 @@ local function parseTable()
}
Index = Index + 2
local index = 0
+ local tindex = 0
local wantSep = false
while true do
skipSpace(true)
@@ -1623,11 +1624,12 @@ local function parseTable()
goto CONTINUE
end
index = index + 1
+ tindex = tindex + 1
local texp = {
type = 'tableexp',
start = exp.start,
finish = exp.finish,
- tindex = index,
+ tindex = tindex,
parent = tbl,
value = exp,
}