emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 25ddb3f7d99 3/4: ; ruby-ts--indent-rules: Minor cleanup


From: Dmitry Gutov
Subject: emacs-29 25ddb3f7d99 3/4: ; ruby-ts--indent-rules: Minor cleanup
Date: Thu, 19 Jan 2023 12:44:55 -0500 (EST)

branch: emacs-29
commit 25ddb3f7d999d64989295e694b3111cb05561585
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>

    ; 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.
---
 lisp/progmodes/ruby-ts-mode.el | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el
index 41a1d8df2a6..71562b46306 100644
--- a/lisp/progmodes/ruby-ts-mode.el
+++ b/lisp/progmodes/ruby-ts-mode.el
@@ -648,9 +648,6 @@ a statement container is a node that matches
             parent 0)
            ((match "\\." "call") parent ruby-indent-level)
 
-           ;; ruby-indent-after-block-in-continued-expression
-           ((match "begin" "assignment") parent ruby-indent-level)
-
            ;; method parameters -- four styles:
            ;; 1) With paren, first arg on same line:
            ((and (query "(method_parameters \"(\" _ @indent)")
@@ -706,10 +703,9 @@ a statement container is a node that matches
            ;; ruby-mode does not touch these...
            ((match "bare_string" "string_array") no-indent 0)
 
-           ;; hash and array other than assignments.  Note that the
-           ;; first sibling is the "{" or "[".  There is a special
-           ;; case where the hash is an argument to a method.  These
-           ;; need to be processed first.
+           ;; hash and array.  Note that the first sibling is the "{"
+           ;; or "[".  There is a special case where the hash is an
+           ;; argument to a method.  These need to be processed first.
 
            ((and ruby-ts--same-line-hash-array-p (match "}" "hash"))
             first-sibling 0)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]