* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent ternary if.

This commit is contained in:
Dmitry Gutov 2013-12-17 14:04:23 +02:00
parent cb8b0736d5
commit 35b249a653
3 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2013-12-17 Dmitry Gutov <dgutov@yandex.ru>
* progmodes/ruby-mode.el (ruby-smie-rules): Indent ternary if.
2013-12-17 Stefan Monnier <monnier@iro.umontreal.ca>
* net/shr.el (shr-insert-document): Remove unused var

View file

@ -577,6 +577,7 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'."
"+=" "-=" "*=" "/=" "%=" "**=" "&=" "|=" "^=" "|"
"<<=" ">>=" "&&=" "||=" "and" "or"))
(if (smie-rule-parent-p ";" nil) ruby-indent-level))
(`(:after . ,(or "?" ":")) ruby-indent-level)
(`(:before . "begin")
(unless (save-excursion (skip-chars-backward " \t") (bolp))
(smie-rule-parent)))

View file

@ -330,3 +330,7 @@ def qux
%^abc^
ddd
qux = foo ?
bar :
tee