diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-05-11 22:07:47 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-05-11 22:07:47 +0800 |
commit | 3b97d7d4d54755517db0fd776c006bbb37313967 (patch) | |
tree | 1172b521de749f0ce70e2500da7d30378678fc2e /script/parser | |
parent | 9f8cc1de6737edfb3dbb3e092fa7ce892b06761d (diff) | |
download | lua-language-server-3b97d7d4d54755517db0fd776c006bbb37313967.zip |
stash
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/ast.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/script/parser/ast.lua b/script/parser/ast.lua index 4f27d37d..47093f0e 100644 --- a/script/parser/ast.lua +++ b/script/parser/ast.lua @@ -1460,6 +1460,11 @@ local Defs = { local values if func then local call = createCall(exp, func.finish + 1, exp.finish) + if #exp == 0 then + exp[1] = getSelect(func, 1) + exp[2] = getSelect(func, 2) + exp[3] = getSelect(func, 3) + end call.node = func call.start = inA func.next = call |