Skip to content

Strange indentation when assigning a function with a table argument to a variable #35

@AgentOttsel

Description

@AgentOttsel

If I have a variable and assign the result of a function that receives a table to it, like this:

instance = MyClass.new({
    stuff
})

...The formatted code looks like this. It's confusing to me how MyClass.new( has the same indentation level as the table that it's receiving:

instance =
    MyClass.new(
    {
        arguments
    }
)

I believe this would be the ideal result:

instance = MyClass.new(
    {
        arguments
    }
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions