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

V

Vincent Foley

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.
 
G

Gavin Sinclair

Vincent said:
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
 
M

Martin DeMello

Gavin Sinclair said:
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
 
V

Vincent Foley

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

Gavin Sinclair

Martin said:
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
 
G

Gavin Sinclair

Martin said:
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
 

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

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top