Skip to content

Commit

Permalink
fix #699 check nil
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Oct 1, 2021
1 parent a67ee53 commit f78be72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

## 2.4.1
* `FIX` broken with single file
* `CHG` [#698](https://github.com/sumneko/lua-language-server/issues/698)
* `FIX` [#698](https://github.com/sumneko/lua-language-server/issues/698)
* `FIX` [#699](https://github.com/sumneko/lua-language-server/issues/699)

## 2.4.0
`2021-10-1`
Expand Down
4 changes: 3 additions & 1 deletion script/parser/newparser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3645,7 +3645,9 @@ return function (lua, mode, version, options)
elseif mode == 'Action' then
State.ast = parseAction()
end
State.ast.state = State
if State.ast then
State.ast.state = State
end

return State
end

0 comments on commit f78be72

Please sign in to comment.