emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-25 ee9a1f7: Support safe navigation operator in non-


From: Dmitry Gutov
Subject: [Emacs-diffs] emacs-25 ee9a1f7: Support safe navigation operator in non-SMIE indentation code
Date: Wed, 16 Mar 2016 14:17:03 +0000

branch: emacs-25
commit ee9a1f7ee9573b11a0e5f6ccf0258a290087f6a4
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Support safe navigation operator in non-SMIE indentation code
    
    * lisp/progmodes/ruby-mode.el (ruby-calculate-indent):
    Support safe navigation operator in non-SMIE indentation code.
    Cherry-picked from
    
https://github.com/ruby/ruby/commit/68e16ddd7961b86e5013e62ae2954e88638de058.
---
 lisp/progmodes/ruby-mode.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 60480d6..2389f74 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -1374,7 +1374,7 @@ delimiter."
       (goto-char ruby-indent-point)
       (beginning-of-line)
       (skip-syntax-forward " ")
-      (if (looking-at "\\.[^.]")
+      (if (looking-at "\\.[^.]\\|&\\.")
           (+ indent ruby-indent-level)
         indent))))
 



reply via email to

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