summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-10-11 17:39:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-10-11 17:39:31 +0800
commitb98fe2353b6d83ff880b57eaa85e0e3aba547f2e (patch)
tree261e1b92dbc6f4b5032bd83f4e3bb04b0c63d2d1 /script/parser
parent51509293cbdd3abff67e6fffe5f6cedb70c81343 (diff)
downloadlua-language-server-b98fe2353b6d83ff880b57eaa85e0e3aba547f2e.zip
fix
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/newparser.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua
index 61d9f5a3..87ba4c95 100644
--- a/script/parser/newparser.lua
+++ b/script/parser/newparser.lua
@@ -1567,6 +1567,7 @@ local function parseTable()
goto CONTINUE
end
end
+ index = index + 1
local texp = {
type = 'tableexp',
start = exp.start,
@@ -1576,7 +1577,6 @@ local function parseTable()
value = exp,
}
exp.parent = texp
- index = index + 1
tbl[index] = texp
goto CONTINUE
end