Skip to content

Incorrect indentation with nested literal objects/arrays #469

Closed
@TamsynUlthara

Description

@TamsynUlthara

Commit d54b138 broke indentation in the following case (and also with literal arrays):

a = {
  b: {
    c: {
    },
  },
  d: {
      // indents to here
    // should indent to here, instead
  },
}

The issue doesn't arise if the trailing comma from c is removed.

The issue exists on the develop branch as well.

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