[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions
From: |
Aaron Jensen |
Subject: |
bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions |
Date: |
Tue, 20 Dec 2022 20:34:24 -0500 |
On Tue, Dec 20, 2022 at 12:31 PM Dmitry Gutov <dgutov@yandex.ru> wrote:
>
> On 20/12/2022 18:19, Dmitry Gutov wrote:
> > Okay, so there should be two basic cases:
> >
> > - Indent to the beginning of the statement,
> > - If there was a line continuation (no matter how many), indent 1 extra
> > level?
>
> Here's another quick attempt to make this work without rewriting the
> rest of the logic.
>
> Cases 1 and 2 seem to work now, but not the block example.
I haven't had a chance to try this yet, but I just wanted to mention
that we put the .'s on the end of multi-line expressions, but putting
them at the beginning is probably more common:
some_variable = some_method
.map { |x| x + 1 }
.uniq
I just wanted to mention that in case it mattered for the work you are doing.
Thanks,
Aaron
- bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions, Aaron Jensen, 2022/12/18
- bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions, Dmitry Gutov, 2022/12/19
- bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions, Aaron Jensen, 2022/12/20
- bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions, Dmitry Gutov, 2022/12/21
- bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions, Aaron Jensen, 2022/12/21
- bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions, Dmitry Gutov, 2022/12/22
- bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions, Aaron Jensen, 2022/12/22
- bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions, Dmitry Gutov, 2022/12/23
- bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions, Aaron Jensen, 2022/12/23
- bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions, Dmitry Gutov, 2022/12/24
- bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions, Aaron Jensen, 2022/12/24
- bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions, Dmitry Gutov, 2022/12/25