On Wed, Nov 10, 2004 at 05:40:15PM +0900, Kaspar Schiess wrote:
> Doug Kearns <dougkearns / gmail.com> wrote:
> 
> > Sure, but it seems like a shame people aren't using foldmethod=syntax
> > simply because the folding is too extensive.
> Not that it is quite as it should be, but I guess that could just be a bug: 
> Try to fold syntax this code: 
> 
> module A 
>     	class B
>     	    	def foo
>     	    	    	[1,2,3].each do 
>     	    	    	    	puts 
>     	    	    	end
>     	    	end
>     	end
> end
> 
> Especially the do-end part folds in a weird manner... I have solved the 
> problem by taking out the 'matchgroup' directive from a few syn entries, 
> but that has the obvious disadvantage of not coloring things right. 
> 
> So not all is well with vim either, and I don't have a solution for this 
> yet... 

Works for me... What version of vim, and more importantly, the syntax
file are you using?

Regards,
Doug