diff options
author | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-27 16:20:56 +0000 |
---|---|---|
committer | keiju <keiju@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-27 16:20:56 +0000 |
commit | 576b44165a8f0d61f16fcc42dde4901fb0421257 (patch) | |
tree | 09cc00e704b66e404e16483892122e394d5fab30 /lib | |
parent | bad9f40714202b8dd4d5c7f5485a550f00768eb4 (diff) | |
download | ruby-576b44165a8f0d61f16fcc42dde4901fb0421257.tar.gz |
* lib/irb/ruby-lex.rb: fix [Bug #4232].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/ruby-lex.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |