diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2016-03-13 23:10:38 +0200 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2016-03-14 01:45:00 +0200 |
commit | 04f5525fbb961f6006280be340ca0f03df9e80a7 (patch) | |
tree | 89f0cc6fbc14dfabb9b06343203776f22571a175 /lisp/progmodes/ruby-mode.el | |
parent | ba24c99ec665501fb05cabd77c4115fa1fa9c305 (diff) | |
download | emacs-04f5525fbb961f6006280be340ca0f03df9e80a7.tar.gz |
Make '.' associative, for easier sexp navigation
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar):
Make '.' associative, for easier sexp navigation.
Diffstat (limited to 'lisp/progmodes/ruby-mode.el')
-rw-r--r-- | 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 36c1aed529e..b0b837aa20e 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") |