Fix parse problem with complex yields
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
db93a78e63
commit
1da4596b0f
@ -1,3 +1,11 @@
|
|||||||
|
Tue Dec 30 08:32:32 2003 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
|
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_method):
|
||||||
|
Handle undoing nsting of yield parameters correctly for:
|
||||||
|
|
||||||
|
def each_entry(&b) Dir.foreach(@path) {|f| yield P.new(f) } end
|
||||||
|
|
||||||
|
|
||||||
Tue Dec 30 07:30:00 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
|
Tue Dec 30 07:30:00 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
|
||||||
|
|
||||||
* lib/pathname.rb: Added documentation.
|
* lib/pathname.rb: Added documentation.
|
||||||
|
@ -1987,11 +1987,13 @@ module RDoc
|
|||||||
nest = 0
|
nest = 0
|
||||||
|
|
||||||
loop do
|
loop do
|
||||||
puts("Param: #{tk}, #{@scanner.continue} " +
|
puts("Param: #{tk.inspect}, #{@scanner.continue} " +
|
||||||
"#{@scanner.lex_state} #{nest}") if $DEBUG
|
"#{@scanner.lex_state} #{nest}") if $DEBUG
|
||||||
case tk
|
case tk
|
||||||
when TkSEMICOLON
|
when TkSEMICOLON
|
||||||
break
|
break
|
||||||
|
when TkRBRACE
|
||||||
|
break
|
||||||
when TkLPAREN, TkfLPAREN
|
when TkLPAREN, TkfLPAREN
|
||||||
nest += 1
|
nest += 1
|
||||||
when end_token
|
when end_token
|
||||||
|
Loading…
x
Reference in New Issue
Block a user