On Sun, Jun 15, 2003 at 12:24:58AM +0900, Joao Pedrosa wrote:
> But it had some problem with
> 
> ----- snip
>         def listjoin(channels)
>                 channels.each do |c|^M
>                 s = "join ##{c}"^M
>                 @irconnector.sendToStatus s^M
>                 @irconnector.sendToServer s^M
>         end^M
> end^M
> ----- snip

I think I found the bug in indent/ruby.vim responsible for that (assuming
that you had in fact one or more spaces after '|c|' and before the EOL):

--- ruby.vim.bak        2003-06-14 18:00:03.000000000 +0200
+++ ruby.vim    2003-06-14 18:02:47.000000000 +0200
@@ -52,7 +52,7 @@
   " Add a 'shiftwidth' after lines beginning with module, class, def,...
   " or ending in {, do (with optional |...| and comment).
   let begin_words = '(module|class|def|if|for|while|until|else|elsif|case|when|unless|begin|ensure|rescue)>'
-  if line =~ '\v^\s*' . begin_words  ||  line =~ '\v(\{|<do>)\s*(\|[^|]*\|)?(\s*#.*)?$'
+  if line =~ '\v^\s*' . begin_words  ||  line =~ '\v(\{|<do>)\s*(\|[^|]*\|)?\s*(#.*)?$'
     let ind = ind + &sw
     let flag = 1
   endif

somebody (in fact, now I think it has happened to me in the past) could
put spaces after the block args. and indentation would bomb...

-- 
 _           _                             
| |__   __ _| |_ ___ _ __ ___   __ _ _ __  
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
	Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

We are using Linux daily to UP our productivity - so UP yours!
	-- Adapted from Pat Paulsen by Joe Sloan