summaryrefslogtreecommitdiff
path: root/server/src/parser/ast.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/parser/ast.lua')
-rw-r--r--server/src/parser/ast.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/src/parser/ast.lua b/server/src/parser/ast.lua
index f2356531..5e6b9fcf 100644
--- a/server/src/parser/ast.lua
+++ b/server/src/parser/ast.lua
@@ -71,10 +71,14 @@ local defs = {
end,
Simple = function (first, ...)
if ... then
- return {
+ local obj = {
type = 'simple',
+ start = first.start,
first, ...,
}
+ local last = obj[#obj]
+ obj.finish = last.finish
+ return obj
elseif first == '' then
return nil
else