* lisp/progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t

after `{'.  We need it after block openers, and it doesn't seem
to hurt after hash openers.
This commit is contained in:
Dmitry Gutov 2013-12-22 08:04:40 +02:00
parent 57b837ab5f
commit f235149801
3 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2013-12-22 Dmitry Gutov <dgutov@yandex.ru>
* progmodes/ruby-mode.el (ruby-smie--implicit-semi-p): Return t
after `{'. We need it after block openers, and it doesn't seem
to hurt after hash openers.
2013-12-22 Dmitry Gutov <dgutov@yandex.ru>
* progmodes/ruby-mode.el (ruby--at-indentation-p): New function,

View file

@ -402,7 +402,7 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'."
(skip-chars-backward " \t")
(not (or (bolp)
(and (memq (char-before)
'(?\; ?- ?+ ?* ?/ ?: ?. ?, ?\[ ?\( ?\{ ?\\ ?& ?> ?< ?%
'(?\; ?- ?+ ?* ?/ ?: ?. ?, ?\[ ?\( ?\\ ?& ?> ?< ?%
?~ ?^))
;; Not the end of a regexp or a percent literal.
(not (memq (car (syntax-after (1- (point)))) '(7 15))))

View file

@ -228,6 +228,7 @@ def foo
it("is too!") {
bar
.qux
}
and_this_one(has) { |block, parameters|