From 6ffd38b5117f00339a5da04c1a5d0c5092e42d3c Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 19 Jan 2019 18:38:28 -0800 Subject: [PATCH] Fixed source start position for foldr trees (e.g. IndexChain) --- parser.lua | 2 +- parser.moon | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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