On 24/05/05, Nikolai Weibull <mailing-lists.ruby-talk / rawuncut.elitemail.org> wrote: > Brian Schröäer wrote: > > > > > However, the myvar = case foo still breaks on the next line. > > > > I'll add support for this at a later time. Until then, consider > > > rethinking writing code that uses the case statement in this manner, > > > I like this kind of code. > > > a = case b > > when 1: 10 > > when 2: 20 > > else 50 > > end > > > makes it clear that something is assigned to a. > > Sure, but tell me a reasonable way to indent it and provide me with the > code to do it and I'll add it immediately. Adding something like this > will require changes that will ripple through the whole indentation > code. People seem to think that indentation is a simple matter. > Perhaps they should give it a try sometime. Coming up with a reasonable > Ruby indentation definition took me two weeks of hard work and heavy > thinking. Neither Ruby nor Vim is very friendly to do this kind of > stuff for. Another deterrent thing is that people complain when it > doesn't work but keep very quiet when it does, > nikolai > Sorry Nikolai, I really appreciate your work. It was just that you proposed changing the code, and I wanted to say that I like this idiom. The emacs indenting does it right, but I have no clue about vimscript. Ultimately I think somehow one would need a real ruby parser to get indentation always right. And I'm shure nobody would be willing to write that in vimscript ;) thanks for your work, best regards, Brian -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/