Commit 62f95022 authored by Dmitry Gutov's avatar Dmitry Gutov

* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Don't indent specially

after `=>'.

Fixes: debbugs:16811
parent 16f4c9f1
2014-02-23 Dmitry Gutov <dgutov@yandex.ru>
* progmodes/ruby-mode.el (ruby-smie-rules): Don't indent specially
after `=>' (bug#16811).
2014-02-23 Juanma Barranquero <lekktu@gmail.com>
* elec-pair.el (electric-pair-text-syntax-table)
......
......@@ -653,7 +653,6 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'."
(if (smie-rule-sibling-p)
(and ruby-align-chained-calls 0)
ruby-indent-level))
(`(:after . "=>") ruby-indent-level)
(`(:before . ,(or `"else" `"then" `"elsif" `"rescue" `"ensure"))
(smie-rule-parent))
(`(:before . "when")
......
......@@ -361,4 +361,10 @@ def qux
tee)
foo(:bar =>
tee)
tee)
{'a' => {
'b' => 'c',
'd' => %w(e f)
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment