* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent ternary if.
This commit is contained in:
parent
cb8b0736d5
commit
35b249a653
3 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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)))
|
||||
|
|
|
@ -330,3 +330,7 @@ def qux
|
|||
|
||||
%^abc^
|
||||
ddd
|
||||
|
||||
qux = foo ?
|
||||
bar :
|
||||
tee
|
||||
|
|
Loading…
Add table
Reference in a new issue