Skip to content

Incorrect parsing of shell heredoc #73

Description

@aquarhead

For example:

Image

The syntax is not capturing the EOF but rather treats all lines follows as part of the heredoc.

Moving the EOF to beginning of the line works, as that's how a shell script would indeed format:

Image

But of course this is invalid just syntax:

<$> just
error: Expected '*', ':', '$', identifier, or '+', but found end of line
  ——▶ justfile:66:4
   │
66 │ EOF
   │    ^

I looked around but don't really know how to fix it. Perhaps someways to remove all the indentations and send only the "actual body" to the embedded language somehow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions