summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-02 22:50:31 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-02 22:50:31 +0000
commit2d189f672b21968ef9dbd27a2bddcfea146595c1 (patch)
tree744170adc135ebd20878307a27d2f44529824512 /lib
parentd295957957c828588a8ca3c7b8619c7a93be6b5c (diff)
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/irb/ruby-lex.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb
index 72600289b8..9befc5471e 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