; ruby-ts--indent-rules: Minor cleanup
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules): Remove the (match "begin" "assignment") rule. The catch-all has the same effect. Update a comment referring to rules removed previously.
This commit is contained in:
parent
a0ce569d3b
commit
25ddb3f7d9
1 changed files with 3 additions and 7 deletions
|
@ -648,9 +648,6 @@ a statement container is a node that matches
|
||||||
parent 0)
|
parent 0)
|
||||||
((match "\\." "call") parent ruby-indent-level)
|
((match "\\." "call") parent ruby-indent-level)
|
||||||
|
|
||||||
;; ruby-indent-after-block-in-continued-expression
|
|
||||||
((match "begin" "assignment") parent ruby-indent-level)
|
|
||||||
|
|
||||||
;; method parameters -- four styles:
|
;; method parameters -- four styles:
|
||||||
;; 1) With paren, first arg on same line:
|
;; 1) With paren, first arg on same line:
|
||||||
((and (query "(method_parameters \"(\" _ @indent)")
|
((and (query "(method_parameters \"(\" _ @indent)")
|
||||||
|
@ -706,10 +703,9 @@ a statement container is a node that matches
|
||||||
;; ruby-mode does not touch these...
|
;; ruby-mode does not touch these...
|
||||||
((match "bare_string" "string_array") no-indent 0)
|
((match "bare_string" "string_array") no-indent 0)
|
||||||
|
|
||||||
;; hash and array other than assignments. Note that the
|
;; hash and array. Note that the first sibling is the "{"
|
||||||
;; first sibling is the "{" or "[". There is a special
|
;; or "[". There is a special case where the hash is an
|
||||||
;; case where the hash is an argument to a method. These
|
;; argument to a method. These need to be processed first.
|
||||||
;; need to be processed first.
|
|
||||||
|
|
||||||
((and ruby-ts--same-line-hash-array-p (match "}" "hash"))
|
((and ruby-ts--same-line-hash-array-p (match "}" "hash"))
|
||||||
first-sibling 0)
|
first-sibling 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue