diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-12-01 17:03:59 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-12-01 17:03:59 +0800 |
commit | 8581187a7af6fdce6b26a043014827bb078705e5 (patch) | |
tree | cd2a00054388f45af1b4746a3aa85e2f43afe351 /script/parser | |
parent | dbfde868deadc55e0ae756ba012f8cd50a87e364 (diff) | |
download | lua-language-server-8581187a7af6fdce6b26a043014827bb078705e5.zip |
fix #827
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/newparser.lua | 4 |
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, } |