Actions
Bug #4011
closedInvalid parsing of regexp /abc/min in irb
Description
=begin
When Regexp option is "min" or "xin", irb cannot detect end of statement.
C:\work>irb
irb(main):001:0> a = /abc/min
irb(main):002:0*
Here is a patch
--- ruby-lex.rb 2010-11-01 17:00:46.000000000 +0900
+++ ruby-lex.rb.new 2010-11-01 17:02:00.000000000 +0900
@@ -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
=end
Actions
Like0
Like0Like0