From: "U.Nakamura" Date: 2006-02-02T11:32:55+09:00 Subject: [patch] Symble syntax support of RDoc parser Hello! I found that the process of generation of RDoc documentation of CVS HEAD reported some warnings about net/imap.rb. The warnings are caused by lack of Symbol syntax support of RDoc. I hope this patch will remove the problem. Index: lib/rdoc/parsers/parse_rb.rb =================================================================== RCS file: /home/cvs/ruby/lib/rdoc/parsers/parse_rb.rb,v retrieving revision 1.39 diff -u -1 -p -r1.39 parse_rb.rb --- lib/rdoc/parsers/parse_rb.rb 1 Nov 2005 13:04:33 -0000 1.39 +++ lib/rdoc/parsers/parse_rb.rb 2 Feb 2006 02:27:19 -0000 @@ -1473,4 +1473,8 @@ module RDoc tk1 = get_tk - if tk1.kind_of?(TkId) || tk1.kind_of?(TkOp) - tk = Token(TkSYMBOL).set_text(":" + tk1.name) + if tk1.kind_of?(TkId) || tk1.kind_of?(TkOp) || tk1.kind_of?(TkSTRING) + if tk1.respond_to?(:name) + tk = Token(TkSYMBOL).set_text(":" + tk1.name) + else + tk = Token(TkSYMBOL).set_text(":" + tk1.text) + end # remove the identifier we just read (we're about to Regards, -- U.Nakamura