diff --git a/ChangeLog b/ChangeLog index d5b5744051..7860917616 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Jun 28 01:19:52 2011 Keiju Ishitsuka + + * lib/irb/ruby-lex.rb: fix [Bug #4232]. + Tue Jun 28 00:14:13 2011 Masatoshi SEKI * lib/drb/drb.rb: fix [Bug #4409]. add DRbServer#here?. diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 2414e5cffd..7aec45c429 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -1046,7 +1046,7 @@ class RubyLex while ch = getc if @quoted == ch and nest == 0 break - elsif ch == "#" and peek(0) == "{" + elsif @ltype != "'" && ch == "#" && peek(0) == "{" identify_string_dvar elsif @ltype != "'" && @ltype != "]" && @ltype != ":" and ch == "#" subtype = true