Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

ruby reserved words as hash keys affect indenting incorrectly. #220

Open

Description

@kwerle

Prerequisites

Description

If you use ruby reserved words as keys in a hash they affect indenting [incorrectly]

Steps to Reproduce

audo indent the following:

{
  foo: :bar,
end: :bar,
if: :bar,
  def: :bar,
    baz: :bar,
  else: :bar,
    baz: :bar,
  }

Expected behavior:

{
  foo: :bar,
  end: :bar,
  if: :bar,
  def: :bar,
  baz: :bar,
  else: :bar,
  baz: :bar,
}

Actual behavior:

{
  foo: :bar,
end: :bar,
if: :bar,
  def: :bar,
    baz: :bar,
  else: :bar,
    baz: :bar,
  }

Reproduces how often: 100%

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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