Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
62f95022
Commit
62f95022
authored
Feb 23, 2014
by
Dmitry Gutov
Browse files
* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Don't indent specially
after `=>'. Fixes: debbugs:16811
parent
16f4c9f1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/ruby-mode.el
lisp/progmodes/ruby-mode.el
+0
-1
test/indent/ruby.rb
test/indent/ruby.rb
+7
-1
No files found.
lisp/ChangeLog
View file @
62f95022
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)
...
...
lisp/progmodes/ruby-mode.el
View file @
62f95022
...
...
@@ -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")
...
...
test/indent/ruby.rb
View file @
62f95022
...
...
@@ -361,4 +361,10 @@ def qux
tee
)
foo
(
:bar
=>
tee
)
tee
)
{
'a'
=>
{
'b'
=>
'c'
,
'd'
=>
%w(e f)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment