[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

ruby-mode breaks in ruby-calculate-indent after "#{}"

Samuel Tesla

10/13/2003 11:10:00 PM

I was trying to write the following code with ruby-mode on:

MyClass.foo("Quoted text #{bar}",
more, arguments, here)

When I went to hit TAB on the second line, I got the following backtrace:

(wrong-type-argument integer-or-marker-p (40 . 1773))
ruby-beginning-of-arg((40 . 1773) 1784)
ruby-calculate-indent()
ruby-indent-line(t)
ruby-indent-command()
call-interactively(ruby-indent-command)

Is this a known bug in ruby-mode? If so, any suggestions for a
workaround? I rewrote my code a little so I don't need one right
away. But, after this iteration, I'll dive in and see if I can fix
it (if it isn't already).

Thanks a bunch!

-- Samuel