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)
|
||||
((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)
|
||||
|
||||
|
|
|
@ -85,6 +85,10 @@
|
|||
foo(foo, :bar =>
|
||||
tee)
|
||||
|
||||
foo = %w[
|
||||
asd
|
||||
]
|
||||
|
||||
# Local Variables:
|
||||
# mode: ruby-ts
|
||||
# ruby-after-operator-indent: t
|
||||
|
|
Loading…
Add table
Reference in a new issue