* lisp/progmodes/ruby-mode.el (ruby-smie-rules): Don't return 0 for

:before ";".
This commit is contained in:
Stefan Monnier 2013-10-23 13:18:11 -04:00
parent f493ff19e9
commit bc4aaa31e2
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2013-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/ruby-mode.el (ruby-smie-rules): Don't return 0 for
:before ";".
2013-10-23 Jed Brown <jed@59A2.org> (tiny change)
* progmodes/compile.el (compilation-directory-matcher)
@ -20,8 +25,8 @@
2013-10-23 Dmitry Gutov <dgutov@yandex.ru>
* progmodes/ruby-mode.el (ruby-smie--at-dot-call): Use
`following-char'.
* progmodes/ruby-mode.el (ruby-smie--at-dot-call):
Use `following-char'.
2013-10-22 Stefan Monnier <monnier@iro.umontreal.ca>

View file

@ -453,7 +453,7 @@ explicitly declared in magic comment."
(smie-rule-parent ruby-indent-level))
;; For (invalid) code between switch and case.
;; (if (smie-parent-p "switch") 4)
(t 0)))
))
(`(:before . ,(or `"(" `"[" `"{"))
(cond
((and (equal token "{")