emacs/test/lisp/progmodes/ruby-mode-resources/ruby-bracketed-args-indent.rb
Dmitry Gutov 24f12bdd77 Support the new option in ruby-ts-mode too
* etc/NEWS: Describe it here.

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--parent-call-or-bol):
Support the option ruby-bracketed-args-indent here too (bug#60321).

* test/lisp/progmodes/ruby-ts-mode-tests.el: Include
ruby-bracketed-args-indent.rb as test examples.

* test/lisp/progmodes/ruby-mode-resources/ruby-bracketed-args-indent.rb:
Extend examples for better regression testing.
2024-09-02 21:57:35 +03:00

42 lines
377 B
Ruby

foo
.update({
key => value,
other_key:
}, {
key => value,
other_key:
})
update([
1,
2
], [
3,
4
])
update([{
key: "value"
}, {
key: "value"
}])
update(arg1, {
foo: "bar"
}, [
1,
2
], arg2)
def foo
foo.update(
{
key => value,
other_key: foo
}
)
end
# Local Variables:
# ruby-bracketed-args-indent: nil
# End: