なかだです。

At Fri, 23 Sep 2005 17:42:06 +0900,
rubikitch wrote in [ruby-list:41168]:
> この場合はインデントが0になってしまいます。
> def g
>   [].find{|x| x =~ /a/ }
> #

[ruby-core:04415]の影響ですね。


Index: ruby-mode.el =================================================================== RCS file: /cvs/ruby/src/ruby/misc/ruby-mode.el,v retrieving revision 1.92 diff -U2 -p -r1.92 ruby-mode.el --- ruby-mode.el 12 Jun 2005 16:56:04 -0000 1.92 +++ ruby-mode.el 24 Sep 2005 13:40:55 -0000 @@ -313,9 +313,8 @@ The variable ruby-indent-level controls (ruby-special-char-p)))) nil) - ((or (save-excursion (goto-char start) (looking-at ruby-operator-re)) + ((and (eq option 'heredoc) (< space 0)) t) + ((or (looking-at ruby-operator-re) (looking-at "[\\[({,;]") - (and (or (not (eq option 'heredoc)) - (< space 0)) - (looking-at "[!?]") + (and (looking-at "[!?]") (or (not (eq option 'modifier)) (bolp)
-- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦