Skip to content

Commit

Permalink
fix #848
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Dec 7, 2021
1 parent dc5ee0b commit 6f5aa8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# changelog

## 2.5.4
* `FIX` [#848](https://github.com/sumneko/lua-language-server/issues/848)

## 2.5.3
`2021-12-6`
* `FIX` [#842](https://github.com/sumneko/lua-language-server/issues/844)
Expand Down
8 changes: 4 additions & 4 deletions script/parser/newparser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1649,20 +1649,20 @@ local function parseTable()
wantSep = true
local tindex = parseIndex()
skipSpace()
tindex.type = 'tableindex'
tindex.parent = tbl
index = index + 1
tbl[index] = tindex
if expectAssign() then
skipSpace()
local ivalue = parseExp()
tindex.type = 'tableindex'
tindex.parent = tbl
if ivalue then
ivalue.parent = tindex
tindex.finish = ivalue.finish
tindex.value = ivalue
else
missExp()
end
index = index + 1
tbl[index] = tindex
else
missSymbol '='
end
Expand Down

0 comments on commit 6f5aa8c

Please sign in to comment.