1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 06:20:43 -08:00

(ruby-ts--parent-call-or-bol): Handle more cases with nested literals

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--parent-call-or-bol):
Handle more cases with nested literals.

* test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb: Add examples.
This commit is contained in:
Dmitry Gutov 2023-01-19 05:10:05 +02:00
parent ba33b83ce4
commit 94b9cbf96f
2 changed files with 36 additions and 10 deletions

View file

@ -62,6 +62,23 @@ without_paren = a + b *
c * d +
12
{'a' => {
'b' => 'c',
'd' => %w(e f)
}
}
[1, 2, {
'b' => 'c',
'd' => %w(e f)
}
]
foo(a, {
a: b,
c: d
})
# Local Variables:
# mode: ruby-ts
# ruby-after-operator-indent: t