mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-18 18:00:11 +00:00
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:
parent
9cfa498e0a
commit
8ae42c825e
2 changed files with 7 additions and 2 deletions
|
@ -753,8 +753,9 @@ a statement container is a node that matches
|
||||||
|
|
||||||
((match "}" "hash") ruby-ts--parent-call-or-bol 0)
|
((match "}" "hash") ruby-ts--parent-call-or-bol 0)
|
||||||
((parent-is "hash") ruby-ts--parent-call-or-bol ruby-indent-level)
|
((parent-is "hash") ruby-ts--parent-call-or-bol ruby-indent-level)
|
||||||
((match "]" "array") ruby-ts--parent-call-or-bol 0)
|
((match "]" "^array") ruby-ts--parent-call-or-bol 0)
|
||||||
((parent-is "array") ruby-ts--parent-call-or-bol ruby-indent-level)
|
((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)
|
((parent-is "pair") ruby-ts--parent-call-or-bol 0)
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,10 @@
|
||||||
foo(foo, :bar =>
|
foo(foo, :bar =>
|
||||||
tee)
|
tee)
|
||||||
|
|
||||||
|
foo = %w[
|
||||||
|
asd
|
||||||
|
]
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
# mode: ruby-ts
|
# mode: ruby-ts
|
||||||
# ruby-after-operator-indent: t
|
# ruby-after-operator-indent: t
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue