[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Little indenting bug in Vim's ruby.vim (version 2005-10-07

Vincent Foley

4/5/2006 5:23:00 PM

Hi,

A few months ago, I posted a message in which I said I found a bug in
Vim's Ruby indenting. I tried the version from October 7th today, and
the bug I had reported has been fixed. However, I uncovered a new one:
blocks in arrays.

The following code (indented in Emacs)
arr = [
MyClass.new { |x|
x.some_method
},

MyClass.new { |x|
x.some_other_method
}
]

Is indented like this in vim:
arr = [
MyClass.new { |x|
x.some_method
},

MyClass.new { |x|
x.some_other_method
}
]


I know full well that vim script is a horrible language and that
getting indenting right must be a very hard task, but I hope someone
with enough knowledge of Vim can fix this issue.

6 Answers

Gavin Sinclair

4/9/2006 12:52:00 AM

0


Vincent Foley wrote:

> A few months ago, I posted a message in which I said I found a bug in
> Vim's Ruby indenting. I tried the version from October 7th today, and
> the bug I had reported has been fixed. However, I uncovered a new one:
> blocks in arrays.

Hi Vince,

I can't promise anything, but I passed the report on to the vim-ruby
mailing list. Sorry to say we usually have a slow turnaround.

Cheers,
Gavin

Martin DeMello

4/9/2006 5:37:00 PM

0

Gavin Sinclair <gsinclair@gmail.com> wrote:
>
> Vincent Foley wrote:
>
> > A few months ago, I posted a message in which I said I found a bug in
> > Vim's Ruby indenting. I tried the version from October 7th today, and
> > the bug I had reported has been fixed. However, I uncovered a new one:
> > blocks in arrays.
>
> Hi Vince,
>
> I can't promise anything, but I passed the report on to the vim-ruby
> mailing list. Sorry to say we usually have a slow turnaround.

What's the recommended place to file a bug? I entered one into the
rubyforge tracker, but if the mailing list is preferred i'll refile it.

martin

Vincent Foley

4/9/2006 11:12:00 PM

0

No problem, like I said, I know how sucky vim script is, so I can
understand not wanting to fix the bug right away.

Gavin Sinclair

4/10/2006 1:44:00 AM

0


Martin DeMello wrote:

> > I can't promise anything, but I passed the report on to the vim-ruby
> > mailing list. Sorry to say we usually have a slow turnaround.
>
> What's the recommended place to file a bug? I entered one into the
> rubyforge tracker, but if the mailing list is preferred i'll refile it.

I'd say the tracker is preferred. No need to make people join a
mailing list just to file a bug.

I have no opposition to problems simply being discussed in this forum
either. Sometimes it happens that people don't have the latest
version.

Thanks for filing,
Gavin

Gavin Sinclair

4/10/2006 1:45:00 AM

0


Martin DeMello wrote:

> > I can't promise anything, but I passed the report on to the vim-ruby
> > mailing list. Sorry to say we usually have a slow turnaround.
>
> What's the recommended place to file a bug? I entered one into the
> rubyforge tracker, but if the mailing list is preferred i'll refile it.

I'd say the tracker is preferred. No need to make people join a
mailing list just to file a bug.

I have no opposition to problems simply being discussed in this forum
either. Sometimes it happens that people don't have the latest
version.

Thanks for filing,
Gavin

Gavin Sinclair

4/10/2006 1:47:00 AM

0


Crap. Sorry about the double post!

Gavin