[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: debugging rails in an IDE?

Lothar Scholz

11/18/2004 10:31:00 PM

Hello Jim,


JW> Yeah, long quoted strings using %{ ... } tend to confuse it.

The quoting rules of ruby are unfortunately the most complicated i've
ever seen. And often you can only find out if a '%(' starts a string
or is a modulo operation with some argument only after doing a full,
exact expression parse. For the moment i'm not really motivated to do
this.

JW> Also,
JW> continued lines don't seem to be indented as I expect. For example..

JW> x = a +
JW> b # <== I expected continued lines to be indented.

In this case it's easy but there can be much more complex cases.
Is the emacs mode doing this correctly ? Maybe i can find some hints
there how to handle this situation better. I'm not sure if the
result justifies the huge amout of time it costs to fix this, since at
the moment everybody is waiting for code insight things like this.
But i will put a line about this to my improvements list.

JW> Also, long here documents are modified by indent region/indent file.
JW> Since here documents are strings, I would expect them to be left alone
JW> during the reformatting process. For example, running indent-selection on
JW> the following code ...

You are right, this is a clear bug. I will fix it.


--
Best regards, emailto: scholz at scriptolutions dot com
Lothar Scholz http://www.ru...
CTO Scriptolutions Ruby, PHP, Python IDE 's