ruby-ts-mode: Fix indentation for string_array closer

* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules):
Fix indentation for string_array closer.
This commit is contained in:
Dmitry Gutov 2023-12-24 04:22:34 +02:00
parent 9cfa498e0a
commit 8ae42c825e
2 changed files with 7 additions and 2 deletions

View file

@ -753,8 +753,9 @@ a statement container is a node that matches
((match "}" "hash") ruby-ts--parent-call-or-bol 0)
((parent-is "hash") ruby-ts--parent-call-or-bol ruby-indent-level)
((match "]" "array") ruby-ts--parent-call-or-bol 0)
((parent-is "array") ruby-ts--parent-call-or-bol ruby-indent-level)
((match "]" "^array") ruby-ts--parent-call-or-bol 0)
((parent-is "^array") ruby-ts--parent-call-or-bol ruby-indent-level)
((match ")" "string_array") ruby-ts--parent-call-or-bol 0)
((parent-is "pair") ruby-ts--parent-call-or-bol 0)

View file

@ -85,6 +85,10 @@ foo(foo, bar:
foo(foo, :bar =>
tee)
foo = %w[
asd
]
# Local Variables:
# mode: ruby-ts
# ruby-after-operator-indent: t