Skip to content

let-in expression end position includes trailing whitespace #13

Description

@lue-bird

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions