Bug with Emacs mode for Ruby

H

hemant

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
 
K

Kevin Olemoh

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top