Skip to content

Commit

Permalink
fix #730
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Oct 12, 2021
1 parent f73fe13 commit fa91a4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* `FIX` [#719](https://github.com/sumneko/lua-language-server/issues/719)
* `FIX` [#725](https://github.com/sumneko/lua-language-server/issues/725)
* `FIX` [#729](https://github.com/sumneko/lua-language-server/issues/729)
* `FIX` [#730](https://github.com/sumneko/lua-language-server/issues/730)
* `FIX` runtime errors

## 2.4.2
Expand Down
7 changes: 7 additions & 0 deletions script/parser/newparser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2114,6 +2114,13 @@ local function parseParams(params)
finish = getPosition(Tokens[Index] + #token - 1, 'right'),
}
end
if isKeyWord(token) then
pushError {
type = 'KEYWORD',
start = getPosition(Tokens[Index], 'left'),
finish = getPosition(Tokens[Index] + #token - 1, 'right'),
}
end
Index = Index + 2
goto CONTINUE
end
Expand Down

0 comments on commit fa91a4d

Please sign in to comment.