Subject: bug#16996: 24.3.50; [ruby-mode] Incorrect indentation for implicit hash arguments

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 29 May 2021 10:55:02 +0200

Dmitry Gutov <[email-masked]> writes:

> Bozhidar Batsov <[email-masked]> 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