Bug?: vim folding for Ruby

K

Kaspar Schiess

Hello all, Hello Doug,

I am still fighting against ruby support in VIM, here's my problem:
+ def foo
|+ def bar
||+ [1,2,3].each do
||| puts
||| end
|| end
| end

folds correctly, while

+ def foo
| [1,2,3].each do
|+ puts
|| end
| end

does not (simulated fold margin=3).

I have traced the trouble back two the following problem solving hints:
- disabling matchgroup directives in the syntax regions that are
occupied with 'do' folding disables the nice highlight, but gets
the folds right.

- The number of enclosing regions makes all the difference: This is
illustrated above. The 'def foo; def bar' sequence is not everyday
Ruby, I know, but try it with any enclosing, fold producing sequence
like class A; class B or the like.

I would welcome any hints at all, since this really begins to annoy me.
Thank you !
kaspar

hand manufactured code - www.tua.ch/ruby
 
D

Doug Kearns

Hello Kaspar,

Hello all, Hello Doug,

I am still fighting against ruby support in VIM, here's my problem:

folds correctly, while

+ def foo
| [1,2,3].each do
|+ puts
|| end
| end

does not (simulated fold margin=3).

Again, this works for me, unfortunately...

I would welcome any hints at all, since this really begins to annoy me.
Thank you !

Since this will probably require a little 'back and forth' would you
mind if we moved it to the vim-ruby mailing list?

http://rubyforge.org/mail/?group_id=16

Thanks,
Doug
 

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,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top