emacs/test/lisp/progmodes/ruby-mode-resources/ruby-after-operator-indent.rb
Dmitry Gutov 267fc6d00c ruby-smie-rules: Fix misindentation of a method call after assignment
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Fix indentation of a
method call after assignment with ruby-after-operator-indent=nil
(bug#61822).

* test/lisp/progmodes/ruby-mode-resources/ruby-after-operator-indent.rb:
Add corresponding example.
2023-02-27 02:06:20 +02:00

33 lines
332 B
Ruby

4 +
5 +
6 +
7
qux = 4 + 5 *
6 +
7
foo = obj.bar { |m| tee(m) } +
obj.qux { |m| hum(m) }
some_variable = abc + some_method(
some_argument
)
foo.
bar
.baz
qux = foo.fee ?
bar :
tee
# Endless methods.
class Bar
def foo(abc) = bar +
baz
end
# Local Variables:
# ruby-after-operator-indent: nil
# End: