Skip to content

incorrect indentation if do is on its own line #469

Open
@andreyorst

Description

@andreyorst

The following code:

defmodule Example do
  def foo0
  do
    "0"
  end

  def foo1
  do
    "1"
  end

  def foo2
  do
    "2"
  end
end

Is indented like this:

image

I know that do on its own line is not very common, but indentation should not grow with each definition

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions