|
From: | Dmitry Gutov |
Subject: | bug#60186: 29.0.60; ruby-mode indentation of multi-line expressions |
Date: | Tue, 27 Dec 2022 17:56:14 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 |
On 27/12/2022 03:47, Aaron Jensen wrote:
On Mon, Dec 26, 2022 at 8:28 PM Dmitry Gutov <dgutov@yandex.ru> wrote:On 25/12/2022 02:14, Aaron Jensen wrote:(setq ruby-indent-simplified tBTW, do you have any opinion on the name? Perhaps something more semantic would be easier to discover. A recent tree-sitter thread brought up sh-indent-after-continuation. It's not a direct counterpart, though, and the examples only look remotely similar. Call ours ruby-indent-continuations-simplified, maybe? Now that we seem to have reduced its scope to expression continuations across newlines. Hopefully it won't be confused with Kernel#callcc.Simple is what it is in comparison to something more complex.
Just 1 indent vs arbitrary number of indents depending on operator priority/ast nesting. Seems like "simpler" is appropriate.
All indentations are pretty much about line continuation in one way or another.
Okay, how about ruby-indent-operator-continuation?Or ruby-indent-binary-op-continuation. Which would include all binary operators and method calls. *shrug* We could also split off the method call indentation to a separate option too.
What is it on its own? I'm not sure. Some food for thought: Unaligned
That might be a good adjective (if we take it to mean, not aligned to the closest parent AST node), but something else to narrow down the scope is needed in the name. ruby-operator-unaligned-indent?
ruby-operator-shallow-indent?
Beginning of line aligned
Beginning of statement, I guess?
Standard
"Standard" is a point of view. ;-)
[Prev in Thread] | Current Thread | [Next in Thread] |