diff options
| author | Dmitry Gutov | 2013-10-08 02:01:23 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2013-10-08 02:01:23 +0300 |
| commit | 0ea1599d34414dbdc77c46208535c2ebdb614885 (patch) | |
| tree | 6e7625116d5ebdca693e9191d709f53ca0408db3 /lisp/progmodes/ruby-mode.el | |
| parent | 595e113b15e2ce80b95d39d1851ce78f25ffa1f4 (diff) | |
| download | emacs-0ea1599d34414dbdc77c46208535c2ebdb614885.tar.gz emacs-0ea1599d34414dbdc77c46208535c2ebdb614885.zip | |
* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Handle the
case of the dot in a chained method call being on the following
line.
Diffstat (limited to 'lisp/progmodes/ruby-mode.el')
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 6497fb6b7d0..c96eccbfecb 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -295,7 +295,10 @@ Also ignores spaces after parenthesis when 'space." | |||
| 295 | (and (memq (char-before) '(?\? ?=)) | 295 | (and (memq (char-before) '(?\? ?=)) |
| 296 | (let ((tok (ruby-smie--backward-token))) | 296 | (let ((tok (ruby-smie--backward-token))) |
| 297 | (or (equal tok "?") | 297 | (or (equal tok "?") |
| 298 | (string-match "\\`\\s." tok)))))))) | 298 | (string-match "\\`\\s." tok)))) |
| 299 | (save-excursion | ||
| 300 | (forward-comment 1) | ||
| 301 | (eq (char-after) ?.)))))) | ||
| 299 | 302 | ||
| 300 | (defun ruby-smie--redundant-do-p (&optional skip) | 303 | (defun ruby-smie--redundant-do-p (&optional skip) |
| 301 | (save-excursion | 304 | (save-excursion |