diff --git a/parser.lua b/parser.lua index 4016e9b..339cf30 100644 --- a/parser.lua +++ b/parser.lua @@ -10,7 +10,7 @@ foldr = function(...) assert(inner.type) local outer = select(i, ...) table.insert(outer, 1, inner) - inner.start = outer.start + outer.source.start = inner.source.start inner = outer end assert(inner.type) diff --git a/parser.moon b/parser.moon index 8f75eea..47459b2 100644 --- a/parser.moon +++ b/parser.moon @@ -11,7 +11,7 @@ foldr = (...)-> assert inner.type outer = select(i,...) table.insert(outer, 1, inner) - inner.start = outer.start + outer.source.start = inner.source.start inner = outer assert inner.type return inner