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:
parent
ba33b83ce4
commit
94b9cbf96f
2 changed files with 36 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue