<snip>
> Yes! I really should send email at this time... 
shouldn't
> Would it be worth making this configurable in syntax file? I expect
> Ara's specified usage to be the most common for those not wanting
> maximum folding.
What does making it configurable mean?
We could limit what is folded based on a variable setting, as we already
do for other syntax features. See :help ruby-syntax
People can already set their own folding rules in
$HOME/.vim/ftplugin/ruby.vim.
I'm not sure what you mean by folding rules. I haven't given it much
thought, but I can't think of a good way to configure the syntax based
folding from there using any of the set options.
The syntax rules should merely be correct.
Sure, but it seems like a shame people aren't using foldmethod=syntax
simply because the folding is too extensive.
Regards,
Doug
···
On Wed, Nov 10, 2004 at 07:56:22AM +0900, Gavin Sinclair wrote:
On Wednesday, November 10, 2004, 3:08:09 AM, Doug wrote:
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...
regards,
kaspar
hand manufactured code - www.tua.ch/ruby
···
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.
Works for me... What version of vim, and more importantly, the syntax
file are you using?
Regards,
Doug
···
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...
Doug Kearns <dougkearns@gmail.com> wrote in news:20041110090557.GB3923
@localhost.localdomain:
Works for me... What version of vim, and more importantly, the syntax
file are you using?
Thank you for reacting:
vim63 (windows)
$Id: ruby.vim,v 1.37 2004/05/12 13:35:07 dkearns Exp $
By disabling the matchgroup, I get correct folding, by enabling it, correct
highlighting.
regards, kaspar
hand manufactured code - www.tua.ch/ruby