emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/aggressive-indent a8c462f 04/43: Add def to the list of


From: Stefan Monnier
Subject: [elpa] externals/aggressive-indent a8c462f 04/43: Add def to the list of ruby-mode exceptions
Date: Wed, 7 Jul 2021 22:49:39 -0400 (EDT)

branch: externals/aggressive-indent
commit a8c462fbc03ef74e65f4d4a323ae3581f99e9683
Author: Artur Malabarba <bruce.connor.am@gmail.com>
Commit: Artur Malabarba <bruce.connor.am@gmail.com>

    Add def to the list of ruby-mode exceptions
---
 aggressive-indent.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aggressive-indent.el b/aggressive-indent.el
index 9679e92..afded99 100644
--- a/aggressive-indent.el
+++ b/aggressive-indent.el
@@ -248,7 +248,7 @@ This is for internal use only.  For user customization, use
                 '(when (derived-mode-p 'ruby-mode)
                    (let ((line (thing-at-point 'line)))
                      (and (stringp line)
-                          (string-match "\\b\\(if\\|case\\|do\\|begin\\) *$" 
line))))))
+                          (string-match 
"\\b\\(begin\\|case\\|d\\(?:ef\\|o\\)\\|if\\) *$" line))))))
 
 (defcustom aggressive-indent-dont-indent-if '()
   "List of variables and functions to prevent aggressive indenting.



reply via email to

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