[Bug #1234] RDoc failure in benchmark/bm_so_meteor_contest.rb at or around line 542 column

Bug #1234: RDoc failure in benchmark/bm_so_meteor_contest.rb at or
around line 542 column
http://redmine.ruby-lang.org/issues/show/1234

e$B5/I<<Te(B: daigo moriwaki
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Low
Target version: 1.9.1
ruby -v: ruby 1.9.2dev (2009-03-01 trunk 22688) [x86_64-linux]

Making documents fails with the following error:

% ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb
./runruby.rb --extout=.ext – “./bin/rdoc” --all --ri --op .ext/doc
benchmark/bm_so_meteor_contest.rb

benchmark/bm_so_meteor_contest.rb: mCmmmmmmmmCmmmmmmmmmmmmmmmm

RDoc failure in benchmark/bm_so_meteor_contest.rb at or around line 542
column
0

Before reporting this, could you check that the file you’re documenting
compiles cleanly–RDoc is not a full Ruby parser, and gets confused
easily if
fed invalid programs.

The internal error was:

/home/daigo/cprojects/org/ruby_1_9/lib/rdoc/parser/ruby.rb:2049:in
parse_meta_method': undefined method top_level’ for
#RDoc::TopLevel:0x00000002bda180 (NoMethodError)
from
/home/daigo/cprojects/org/ruby_1_9/lib/rdoc/parser/ruby.rb:2445:in
parse_statements' from /home/daigo/cprojects/org/ruby_1_9/lib/rdoc/parser/ruby.rb:2540:in parse_toplevel_statements’
from
/home/daigo/cprojects/org/ruby_1_9/lib/rdoc/parser/ruby.rb:2706:in
`block (2 levels) in scan’

e$B%A%1%C%He(B #1234 e$B$,99?7$5$l$^$7$?!#e(B (by Eric H.)

This is fixed in RDoc trunk.

http://redmine.ruby-lang.org/issues/show/1234

e$B%A%1%C%He(B #1234 e$B$,99?7$5$l$^$7$?!#e(B (by Eric H.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B

Now checked in.

http://redmine.ruby-lang.org/issues/show/1234