1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-28 19:42:02 +00:00

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

after `=>'.

Fixes: debbugs:16811
This commit is contained in:
Dmitry Gutov 2014-02-23 07:53:53 +02:00
parent 16f4c9f148
commit 62f9502226
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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)

View File

@ -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")

View File

@ -361,4 +361,10 @@ def qux
tee)
foo(:bar =>
tee)
tee)
{'a' => {
'b' => 'c',
'd' => %w(e f)
}
}