Bug with Emacs mode for Ruby

There seems to be a bug with Emacs mode of Ruby:

For example:
I have following three statements and Emacs behaves quite differently
with each of them

this work pretty fine actually

return 1 if @chunked_data !~ /SESSID/

indentation is pretty screwed up actually

return $& if @chunked_data !~ /SESSID/
# Emacs thinks this as the beginning of the next statement

#again indentation of subsequent lines get screwed up
return “hi” if @chunked_data =~ /(?:SESSID=)(\w+)(?:,|##)/

Emacs thinks this as the beginning of the next statement

Could you post a link to a screenshot of the behavior of Emacs on your
machine? I think I may have experienced something simillar but I am
not entirely sure.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs