Skip to content

Anonymous functions inside functions break indentation #59

@mattdeboard

Description

@mattdeboard

Code that should look like this:

defmodule FooMod do
  def foo do
    fn(a, b) -> a + b end
  end
end

actually looks like this:

defmodule FooMod do
  def foo do
    fn(a, b) -> a + b end
end
end

The anon function's end is being treated as the closing of foo method.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions