diff options
Diffstat (limited to 'server/src/parser/ast.lua')
-rw-r--r-- | server/src/parser/ast.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua index 77edeb5e..6de13aa4 100644 --- a/server/src/parser/ast.lua +++ b/server/src/parser/ast.lua @@ -85,18 +85,24 @@ local defs = { exp.index = true return exp end, - Call = function (arg) + Call = function (start, arg, finish) if arg == nil then return { - type = 'call' + type = 'call', + start = start, + finish = finish - 1, } end if arg.type == 'list' then arg.type = 'call' + arg.start = start + arg.finish = finish - 1 return arg end local obj = { type = 'call', + start = start, + finish = finish - 1, [1] = arg, } return obj |