* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Don't indent specially
after `=>'. Fixes: debbugs:16811
This commit is contained in:
parent
16f4c9f148
commit
62f9502226
3 changed files with 12 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue