diff options
Diffstat (limited to 'lisp/progmodes/ruby-mode.el')
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index b8c24e8a690..6497fb6b7d0 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -414,7 +414,8 @@ Also ignores spaces after parenthesis when 'space." | |||
| 414 | (`(:before . ,(or `"(" `"[" `"{")) | 414 | (`(:before . ,(or `"(" `"[" `"{")) |
| 415 | ;; Treat purely syntactic block-constructs as being part of their parent, | 415 | ;; Treat purely syntactic block-constructs as being part of their parent, |
| 416 | ;; when the opening statement is hanging. | 416 | ;; when the opening statement is hanging. |
| 417 | (if (smie-rule-hanging-p) (smie-rule-parent))) | 417 | (when (smie-rule-hanging-p) |
| 418 | (smie-backward-sexp 'halfsexp) (smie-indent-virtual))) | ||
| 418 | (`(:after . "=") 2) | 419 | (`(:after . "=") 2) |
| 419 | (`(:before . "do") | 420 | (`(:before . "do") |
| 420 | (when (or (smie-rule-hanging-p) | 421 | (when (or (smie-rule-hanging-p) |