diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 6 |
2 files changed, 12 insertions, 2 deletions
@@ -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> * lib/pathname.rb: Added documentation. diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index 08d906c00d..380025ef8d 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -1987,11 +1987,13 @@ module RDoc nest = 0 loop do - puts("Param: #{tk}, #{@scanner.continue} " + - "#{@scanner.lex_state} #{nest}") if $DEBUG + puts("Param: #{tk.inspect}, #{@scanner.continue} " + + "#{@scanner.lex_state} #{nest}") if $DEBUG case tk when TkSEMICOLON break + when TkRBRACE + break when TkLPAREN, TkfLPAREN nest += 1 when end_token |