1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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/trunk@29674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2010-11-02 22:50:31 +00:00
parent d295957957
commit 2d189f672b
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Nov 3 07:47:25 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
* 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@fsij.org>
* vm_method.c (rb_clear_cache_by_class): just return if the class has

View file

@ -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