Hi all,

Here is an indentation problem I noticed in ruby-mode.el 1.39 + GNU
Emacs 21.1 or XEmacs 21.4.6.


-------<code>-------
#!/usr/bin/env ruby

class Test

  def method
    if mm_regex.match f
      if @hardLink
        f = File.expand_path(f)
      else
        f.sub!(%r{^#{@dir}/}, '')
      end # do a ruby-inent-command on this line.
    end
  end

end
-------</code>-------

If you press tab (ruby-indent-command) on line 11, the indentation
gets messed up, and indentation stops working from that point forward,
for the remainder of the method definition.

Thanks
-Le