diff options
-rw-r--r-- | script/parser/newparser.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua index c49d2291..747c4f5c 100644 --- a/script/parser/newparser.lua +++ b/script/parser/newparser.lua @@ -1531,8 +1531,8 @@ local function parseTable() } end wantSep = true - index = index + 1 if exp.type == 'varargs' then + index = index + 1 tbl[index] = exp exp.parent = tbl goto CONTINUE @@ -1559,6 +1559,7 @@ local function parseTable() else missExp() end + index = index + 1 tbl[index] = tfield goto CONTINUE end @@ -1572,6 +1573,7 @@ local function parseTable() value = exp, } exp.parent = texp + index = index + 1 tbl[index] = texp goto CONTINUE end @@ -1585,7 +1587,6 @@ local function parseTable() } end wantSep = true - index = index + 1 local tindex = parseIndex() skipSpace() if expectAssign() then @@ -1600,6 +1601,7 @@ local function parseTable() else missExp() end + index = index + 1 tbl[index] = tindex else missSymbol '=' |