diff options
| author | Dmitry Gutov | 2016-03-13 23:10:38 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2016-03-14 01:45:00 +0200 |
| commit | 04f5525fbb961f6006280be340ca0f03df9e80a7 (patch) | |
| tree | 89f0cc6fbc14dfabb9b06343203776f22571a175 | |
| parent | ba24c99ec665501fb05cabd77c4115fa1fa9c305 (diff) | |
| download | emacs-04f5525fbb961f6006280be340ca0f03df9e80a7.tar.gz emacs-04f5525fbb961f6006280be340ca0f03df9e80a7.zip | |
Make '.' associative, for easier sexp navigation
* lisp/progmodes/ruby-mode.el (ruby-smie-grammar):
Make '.' associative, for easier sexp navigation.
| -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'." | |||
| 368 | (exp (exp1) (exp "," exp) (exp "=" exp) | 368 | (exp (exp1) (exp "," exp) (exp "=" exp) |
| 369 | (id " @ " exp)) | 369 | (id " @ " exp)) |
| 370 | (exp1 (exp2) (exp2 "?" exp1 ":" exp1)) | 370 | (exp1 (exp2) (exp2 "?" exp1 ":" exp1)) |
| 371 | (exp2 (exp3) (exp3 "." exp2)) | 371 | (exp2 (exp3) (exp3 "." exp3)) |
| 372 | (exp3 ("def" insts "end") | 372 | (exp3 ("def" insts "end") |
| 373 | ("begin" insts-rescue-insts "end") | 373 | ("begin" insts-rescue-insts "end") |
| 374 | ("do" insts "end") | 374 | ("do" insts "end") |
| @@ -416,7 +416,7 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'." | |||
| 416 | (nonassoc "==" "===" "!=") | 416 | (nonassoc "==" "===" "!=") |
| 417 | (nonassoc "=~" "!~") | 417 | (nonassoc "=~" "!~") |
| 418 | (left "<<" ">>") | 418 | (left "<<" ">>") |
| 419 | (right ".")))))) | 419 | (assoc ".")))))) |
| 420 | 420 | ||
| 421 | (defun ruby-smie--bosp () | 421 | (defun ruby-smie--bosp () |
| 422 | (save-excursion (skip-chars-backward " \t") | 422 | (save-excursion (skip-chars-backward " \t") |