diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-11-29 13:46:19 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-11-29 13:46:19 +0800 |
commit | 5a608c99b024b09d295b176c098dd251d782c35d (patch) | |
tree | b9f9073882df6dc4b96befda592e89e871450043 /server/src/parser | |
parent | 79d073d7b3ae2f508f0d2e154ed59f87530740e7 (diff) | |
download | lua-language-server-5a608c99b024b09d295b176c098dd251d782c35d.zip |
更新定义匹配
Diffstat (limited to 'server/src/parser')
-rw-r--r-- | server/src/parser/ast.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua index 2c434511..9bd406b7 100644 --- a/server/src/parser/ast.lua +++ b/server/src/parser/ast.lua @@ -112,7 +112,8 @@ local defs = { for i = 2, #args, 2 do op, e2 = args[i], args[i+1] e1 = { - type = op, + type = 'binary', + op = op, [1] = e1, [2] = e2, } @@ -129,7 +130,8 @@ local defs = { for i = #args - 1, 1, -1 do op = args[i] e1 = { - type = op, + type = 'unary', + op = op, [1] = e1, } end |