From: nobu.nokada@... Date: 2004-04-20T20:48:01+09:00 Subject: Re: problem with irb Hi, At Tue, 20 Apr 2004 20:19:09 +0900, gabriele renzi wrote in [ruby-talk:97677]: > > Hi gurus and nubys, > > it is normal that IRB in latest pragprog is: > > > C:\Documents and Settings\gabriele>irb -v > irb 0.9(02/07/03) > > if that is true and I've not messed up something, Try this patch. Index: lib/irb/ruby-lex.rb =================================================================== RCS file: /cvs/ruby/src/ruby/lib/irb/ruby-lex.rb,v retrieving revision 1.22 diff -U2 -p -d -r1.22 ruby-lex.rb --- lib/irb/ruby-lex.rb 4 Oct 2003 17:51:09 -0000 1.22 +++ lib/irb/ruby-lex.rb 20 Apr 2004 11:47:05 -0000 @@ -974,5 +974,5 @@ class RubyLex if @quoted == ch and nest == 0 break - elsif @ltype != "'" && @ltype != "]" and ch == "#" + elsif ! "']:".index(@ltype) and ch == "#" subtype = true elsif ch == '\\' #' -- Nobu Nakada