diff options
| author | Dmitry Gutov | 2013-12-17 14:04:23 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2013-12-17 14:04:23 +0200 |
| commit | 35b249a653c0f855d6d0d421be216e6465585ce4 (patch) | |
| tree | ff1c7c69f4a8606960f39c65aac3d2edbca964d5 /lisp | |
| parent | cb8b0736d56871ed988a6f7f2071e0bdd9f760bb (diff) | |
| download | emacs-35b249a653c0f855d6d0d421be216e6465585ce4.tar.gz emacs-35b249a653c0f855d6d0d421be216e6465585ce4.zip | |
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent ternary if.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a0651917f3f..9a424b239c2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2013-12-17 Dmitry Gutov <dgutov@yandex.ru> | ||
| 2 | |||
| 3 | * progmodes/ruby-mode.el (ruby-smie-rules): Indent ternary if. | ||
| 4 | |||
| 1 | 2013-12-17 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2013-12-17 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * net/shr.el (shr-insert-document): Remove unused var | 7 | * net/shr.el (shr-insert-document): Remove unused var |
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index e5148d29a97..54eba5b9164 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -577,6 +577,7 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'." | |||
| 577 | "+=" "-=" "*=" "/=" "%=" "**=" "&=" "|=" "^=" "|" | 577 | "+=" "-=" "*=" "/=" "%=" "**=" "&=" "|=" "^=" "|" |
| 578 | "<<=" ">>=" "&&=" "||=" "and" "or")) | 578 | "<<=" ">>=" "&&=" "||=" "and" "or")) |
| 579 | (if (smie-rule-parent-p ";" nil) ruby-indent-level)) | 579 | (if (smie-rule-parent-p ";" nil) ruby-indent-level)) |
| 580 | (`(:after . ,(or "?" ":")) ruby-indent-level) | ||
| 580 | (`(:before . "begin") | 581 | (`(:before . "begin") |
| 581 | (unless (save-excursion (skip-chars-backward " \t") (bolp)) | 582 | (unless (save-excursion (skip-chars-backward " \t") (bolp)) |
| 582 | (smie-rule-parent))) | 583 | (smie-rule-parent))) |