[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16996: 24.3.50; [ruby-mode] Incorrect indentation for implicit hash
From: |
Lars Ingebrigtsen |
Subject: |
bug#16996: 24.3.50; [ruby-mode] Incorrect indentation for implicit hash arguments |
Date: |
Sat, 29 May 2021 10:55:02 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Dmitry Gutov <dgutov@yandex.ru> writes:
> Bozhidar Batsov <bozhidar@batsov.com> writes:
>
>> top(1, :a => 1,
>> :b => 2)
>>
>> top(1, :a => 1,
>> :b => 2)
>
> This looks like something that would be pretty gnarly to implement. I'm
> not sure if we want to. Here's another example:
>
> top(1, {
> :a => 1,
> :b => 2
> })
>
> If we remove the braces, would you still indent :a and :b like if the
> braces were present?
The current indentation in Ruby here seems pretty natural to me, so I'm
closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#16996: 24.3.50; [ruby-mode] Incorrect indentation for implicit hash arguments,
Lars Ingebrigtsen <=