Skip to content

Commit

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

## 1.19.1
* `FIX` `LuaDoc`: parsing resumes may wrong
* `FIX` `LuaDoc`: parsing resumes may wrong*
* `FIX` [#458](https://github.com/sumneko/lua-language-server/issues/458)
* `FIX` runtime errors

## 1.19.0
Expand Down
5 changes: 3 additions & 2 deletions script/parser/ast.lua
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ local Defs = {
GetIndex = function (start, index, finish)
local obj = {
type = 'getindex',
bstart = start,
start = start,
finish = finish - 1,
index = index,
Expand Down Expand Up @@ -1021,8 +1022,8 @@ local Defs = {
name.value = actions
PushError {
type = 'INDEX_IN_FUNC_NAME',
start = name.index.start,
finish = name.index.finish,
start = name.bstart,
finish = name.finish,
}
end
name.range = actions.finish
Expand Down

0 comments on commit 14a49fa

Please sign in to comment.