Skip to content

special case for guard pattern match syntax if ... end => ... #789

Description

@Roger-luo

This is related to #404, consider the following code

@match node begin
    if is_leaf(node) end => nothing
end

currently this will format it into

@match node begin
    if is_leaf(node)
    end => nothing
end

I'm wondering if we can special case this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Priority 2 — see contributing docs

    Type

    No type

    Fields

    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