mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-09 07:40:39 -08:00
ruby-ts-mode: Fix the rules for hanging arrays and hashes
* 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.
This commit is contained in:
parent
c4f0b6ccea
commit
9ed9ff4690
3 changed files with 28 additions and 14 deletions
23
test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb
Normal file
23
test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
variable = foo(
|
||||
[
|
||||
qwe
|
||||
], [
|
||||
rty
|
||||
], {
|
||||
a: 3
|
||||
}
|
||||
)
|
||||
|
||||
tee = [
|
||||
qwe
|
||||
]
|
||||
|
||||
qux = [1,
|
||||
2]
|
||||
|
||||
att = {a: 1,
|
||||
b: 2}
|
||||
|
||||
# Local Variables:
|
||||
# mode: ruby-ts
|
||||
# End:
|
||||
Loading…
Add table
Add a link
Reference in a new issue