Skip to content

Indentation of if fails after a -> #248

@whatyouhide

Description

@whatyouhide

These two (minimal-ish) cases break the indentation of if (by both indenting the if one level less than it should be indented):

case :foo do
  1 ->
  if true do
    :foo
  end
  2 ->
    false
end

and

fn x ->
if true do
end
end

FWIW, unless seems to work in those cases.

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