Skip to content

Classic if/then/else formatting. #12

Open
@jordwalke

Description

@jordwalke

This is one pattern that I've had a hard time figuring out how to accomplish with the formatting primitives in Eeasy_format:

if (x) {itemHere(a, b, c)} else {itemThere(x, y, z)}

Where if for any reason the "if braces" had broken, then the "else braces" should also break.

if (x) {
  itemHere (
    a,
    b,
    c
  )
} else {
   itemThere(x, y, z)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions