The let-in expression parser assumes the let-in-body parse end equals it's located end: https://github.com/gren-lang/compiler-common/blob/1.0.0/src/Compiler/Parse/Expression.gren#L284
This assumption is wrong when e.g. its body is a function call followed by module-level comments on the following lines.
Instead, the body.end should be used as the end position for the whole located let-in expression.
The
let-inexpression parser assumes the let-in-body parse end equals it's located end: https://github.com/gren-lang/compiler-common/blob/1.0.0/src/Compiler/Parse/Expression.gren#L284This assumption is wrong when e.g. its body is a function call followed by module-level comments on the following lines.
Instead, the
body.endshould be used as the end position for the whole located let-in expression.