[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-25 04f5525 1/3: Make '.' associative, for easier sex
From: |
Dmitry Gutov |
Subject: |
[Emacs-diffs] emacs-25 04f5525 1/3: Make '.' associative, for easier sexp navigation |
Date: |
Sun, 13 Mar 2016 23:46:05 +0000 |
branch: emacs-25
commit 04f5525fbb961f6006280be340ca0f03df9e80a7
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>
Make '.' associative, for easier sexp navigation
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar):
Make '.' associative, for easier sexp navigation.
---
lisp/progmodes/ruby-mode.el | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 36c1aed..b0b837a 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -368,7 +368,7 @@ It is used when `ruby-encoding-magic-comment-style' is set
to `custom'."
(exp (exp1) (exp "," exp) (exp "=" exp)
(id " @ " exp))
(exp1 (exp2) (exp2 "?" exp1 ":" exp1))
- (exp2 (exp3) (exp3 "." exp2))
+ (exp2 (exp3) (exp3 "." exp3))
(exp3 ("def" insts "end")
("begin" insts-rescue-insts "end")
("do" insts "end")
@@ -416,7 +416,7 @@ It is used when `ruby-encoding-magic-comment-style' is set
to `custom'."
(nonassoc "==" "===" "!=")
(nonassoc "=~" "!~")
(left "<<" ">>")
- (right "."))))))
+ (assoc "."))))))
(defun ruby-smie--bosp ()
(save-excursion (skip-chars-backward " \t")