mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/irb/ruby-lex.rb (RubyLex::getc): should not push nil into
reading buffer (@readed). reported in <http://jarp.does.notwork.org/diary/200608c.html#200608311>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
04f01ce2f5
commit
8cf47d14ab
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Fri Sep 1 09:32:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/irb/ruby-lex.rb (RubyLex::getc): should not push nil into
|
||||||
|
reading buffer (@readed). reported in
|
||||||
|
<http://jarp.does.notwork.org/diary/200608c.html#200608311>.
|
||||||
|
|
||||||
Thu Aug 31 23:59:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Thu Aug 31 23:59:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/mkmf.rb (configuration): follow nil.to_s.
|
* lib/mkmf.rb (configuration): follow nil.to_s.
|
||||||
|
|
|
@ -104,6 +104,7 @@ class RubyLex
|
||||||
@rests.push nil unless buf_input
|
@rests.push nil unless buf_input
|
||||||
end
|
end
|
||||||
c = @rests.shift
|
c = @rests.shift
|
||||||
|
return if c == nil
|
||||||
if @here_header
|
if @here_header
|
||||||
@here_readed.push c
|
@here_readed.push c
|
||||||
else
|
else
|
||||||
|
@ -234,7 +235,6 @@ class RubyLex
|
||||||
unless l = lex
|
unless l = lex
|
||||||
throw :TERM_INPUT if @line == ''
|
throw :TERM_INPUT if @line == ''
|
||||||
else
|
else
|
||||||
#p l
|
|
||||||
@line.concat l
|
@line.concat l
|
||||||
if @ltype or @continue or @indent > 0
|
if @ltype or @continue or @indent > 0
|
||||||
next
|
next
|
||||||
|
|
Loading…
Reference in a new issue