diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-12-11 17:01:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-12-11 17:01:22 +0800 |
commit | e3486e01e820b2d61bf28e57277479ee59ab94b9 (patch) | |
tree | fd023532fc7c8b785a9f33083e0b9ec908f15214 /script-beta/parser | |
parent | ee4396dce24c8fd004d1a53a80328cf573809af9 (diff) | |
download | lua-language-server-e3486e01e820b2d61bf28e57277479ee59ab94b9.zip |
修正未引用变量的bug
Diffstat (limited to 'script-beta/parser')
-rw-r--r-- | script-beta/parser/ast.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/parser/ast.lua b/script-beta/parser/ast.lua index 42bbb751..43335950 100644 --- a/script-beta/parser/ast.lua +++ b/script-beta/parser/ast.lua @@ -1077,6 +1077,9 @@ local Defs = { return tableUnpack(keys) end, LocalAttr = function (attrs) + if #attrs == 0 then + return nil + end for i = 1, #attrs do local attr = attrs[i] local attrAst = attr |