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

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

Open
1 task done
kwerle opened this issue Nov 5, 2017 · 0 comments
Open
1 task done

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

kwerle opened this issue Nov 5, 2017 · 0 comments

Comments

@kwerle
Copy link

kwerle commented Nov 5, 2017

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%

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant