summaryrefslogtreecommitdiff
path: root/server-beta/src/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-15 23:00:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-15 23:00:35 +0800
commit2862282e18315a6474001a994e385fee132753a6 (patch)
tree9eb13ebf8e14bb882a70bc42110f86f1940008a4 /server-beta/src/parser
parentafc040fa210cfe5c21b4d92c20604a5c24bec4ca (diff)
downloadlua-language-server-2862282e18315a6474001a994e385fee132753a6.zip
修正一些bug
Diffstat (limited to 'server-beta/src/parser')
-rw-r--r--server-beta/src/parser/ast.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/server-beta/src/parser/ast.lua b/server-beta/src/parser/ast.lua
index a87d9acc..f3fec01b 100644
--- a/server-beta/src/parser/ast.lua
+++ b/server-beta/src/parser/ast.lua
@@ -712,6 +712,11 @@ local Defs = {
}
list[n-1] = exp
list[n+1] = exp
+ local lastN = ops[i+1]
+ if lastN then
+ list[lastN-1] = exp
+ list[lastN+1] = exp
+ end
checkOpVersion(op)
end
local final = ops[1]