From 2f7d3b465325021f24460fefe3505b374653a018 Mon Sep 17 00:00:00 2001 From: yugui Date: Wed, 8 Dec 2010 08:09:11 +0000 Subject: merges r29674 from trunk into ruby_1_9_2. -- * lib/irb/ruby-lex.rb (RubyLex#identify_string): parse multiple regex options. a patch from Heesob Park in [ruby-core:32988]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/ruby-lex.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 76e3ebac44..d677e42eef 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -1068,7 +1068,7 @@ class RubyLex 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 -- cgit v1.2.3