diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-06-28 15:47:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-06-28 15:47:48 +0800 |
commit | ef00d018e5f3292dd08deeeabfc77e6c75492a67 (patch) | |
tree | aa1e4500d9e122027762935721c1adbc59cfc45d /server/src/parser/ast.lua | |
parent | daee93fb17e8f206e63ab8573566762011a3f1cd (diff) | |
download | lua-language-server-ef00d018e5f3292dd08deeeabfc77e6c75492a67.zip |
支持返回值命名
Diffstat (limited to 'server/src/parser/ast.lua')
-rw-r--r-- | server/src/parser/ast.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua index 08f7fdd3..c14328f0 100644 --- a/server/src/parser/ast.lua +++ b/server/src/parser/ast.lua @@ -1245,13 +1245,14 @@ local Defs = { emmy.finish = emmy[#emmy].finish return emmy end, - EmmyReturn = function (...) + EmmyReturn = function (type, option) local emmy = { type = 'emmyReturn', - ... + option = option, + start = type.start, + finish = type.finish, + [1] = type, } - emmy.start = emmy[1].start - emmy.finish = emmy[#emmy].finish return emmy end, EmmyField = function (access, fieldName, ...) |