[前][次][番号順一覧][スレッド一覧]

ruby-changes:17665

From: matz <ko1@a...>
Date: Wed, 3 Nov 2010 07:50:38 +0900 (JST)
Subject: [ruby-changes:17665] Ruby:r29674 (trunk): * lib/irb/ruby-lex.rb (RubyLex#identify_string): parse multiple

matz	2010-11-03 07:50:31 +0900 (Wed, 03 Nov 2010)

  New Revision: 29674

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29674

  Log:
    * lib/irb/ruby-lex.rb (RubyLex#identify_string): parse multiple
      regex options.  a patch from Heesob Park in [ruby-core:32988].

  Modified files:
    trunk/ChangeLog
    trunk/lib/irb/ruby-lex.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29673)
+++ ChangeLog	(revision 29674)
@@ -1,3 +1,8 @@
+Wed Nov  3 07:47:25 2010  Yukihiro Matsumoto  <matz@r...>
+
+	* lib/irb/ruby-lex.rb (RubyLex#identify_string): parse multiple
+	  regex options.  a patch from Heesob Park in [ruby-core:32988].
+
 Wed Nov  3 07:33:57 2010  Tanaka Akira  <akr@f...>
 
 	* vm_method.c (rb_clear_cache_by_class): just return if the class has
Index: lib/irb/ruby-lex.rb
===================================================================
--- lib/irb/ruby-lex.rb	(revision 29673)
+++ lib/irb/ruby-lex.rb	(revision 29674)
@@ -1068,7 +1068,7 @@
 	end
       end
       if @ltype == "/"
-	if peek(0) =~ /i|m|x|o|e|s|u|n/
+       while peek(0) =~ /i|m|x|o|e|s|u|n/
 	  getc
 	end
       end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]