mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-07 06:50:23 -08:00
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules): Fix the rules for hanging arrays and hashes (to line up to parent-bol instead of the opening brace). * test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb: New file with examples. * test/lisp/progmodes/ruby-ts-mode-tests.el: Use it here.
23 lines
173 B
Ruby
23 lines
173 B
Ruby
variable = foo(
|
|
[
|
|
qwe
|
|
], [
|
|
rty
|
|
], {
|
|
a: 3
|
|
}
|
|
)
|
|
|
|
tee = [
|
|
qwe
|
|
]
|
|
|
|
qux = [1,
|
|
2]
|
|
|
|
att = {a: 1,
|
|
b: 2}
|
|
|
|
# Local Variables:
|
|
# mode: ruby-ts
|
|
# End:
|