Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Comments

Update decreaseIndentPattern to match Atom#509

Merged
wingrunr21 merged 1 commit intorubyide:masterfrom
kaidamasaki:master
Jul 17, 2019
Merged

Update decreaseIndentPattern to match Atom#509
wingrunr21 merged 1 commit intorubyide:masterfrom
kaidamasaki:master

Conversation

@kaidamasaki
Copy link
Contributor

Atom's decreaseIndentPattern handles cases like this:

@date = Date.today()
@name = "Test Name"

@data = {
  id: 8,
  foo: Foo.new(
    id: 1,
    phone_number: "412-555-7640"
  ),
  bar: Bar.new(
    id: 1,
    name: "Valentine",
    vin: "DF5S6HFG365HGDCVG",
    status: :AVAILABLE
  ),
  start_time: start_time.to_s,
  end_time: end_time.to_s,
  cost: 23.45,
  rating: 3,
}

Atom's [decrease regexp](https://github.com/atom/language-ruby/blob/d88a4cfb32876295ec5b090a2994957e62130f4a/settings/language-ruby.cson) handles cases like this:

```
@Date = Date.today()
@name = "Test Name"

@DaTa = {
  id: 8,
  foo: Foo.new(
    id: 1,
    phone_number: "412-555-7640"
  ),
  bar: Bar.new(
    id: 1,
    name: "Valentine",
    vin: "DF5S6HFG365HGDCVG",
    status: :AVAILABLE
  ),
  start_time: start_time.to_s,
  end_time: end_time.to_s,
  cost: 23.45,
  rating: 3,
}
```
@wingrunr21 wingrunr21 merged commit 328f907 into rubyide:master Jul 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants