diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-20 21:20:10 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-20 21:20:10 +0800 |
commit | f1f288a72fa02b2bd73e2e7230412067ce102f43 (patch) | |
tree | c203383acfd0b401b8642ab92403bd5c314abe98 /server/src/parser/ast.lua | |
parent | ce5bacf7cb01f128ddc168342211ef003e1aef2a (diff) | |
download | lua-language-server-f1f288a72fa02b2bd73e2e7230412067ce102f43.zip |
支持更多脏语法
Diffstat (limited to 'server/src/parser/ast.lua')
-rw-r--r-- | server/src/parser/ast.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua index daf2d6ba..45a0cbee 100644 --- a/server/src/parser/ast.lua +++ b/server/src/parser/ast.lua @@ -247,6 +247,9 @@ local defs = { return first end end, + Nothing = function () + return nil + end, Set = function (keys, values) return { type = 'set', @@ -349,9 +352,6 @@ local defs = { obj[max] = nil return obj end, - LoopDef = function (arg, min, max, step) - return arg, min, max, step - end, Loop = function (start, arg, min, max, step, ...) local obj = { type = 'loop', |