Import RDoc 3.5.1

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2011-02-02 00:32:30 +00:00
parent 918f625a5e
commit cc2a16d94d
49 changed files with 2119 additions and 273 deletions

View file

@ -401,13 +401,15 @@ class RDoc::RubyLex
|op, io|
@ltype = "="
res = ''
until (ch = getc) == "\n" do res << ch end
nil until (ch = getc) == "\n"
until peek_equal?("=end") && peek(4) =~ /\s/ do
until (ch = getc) == "\n" do res << ch end
end
res << gets
gets # consume =end
@ltype = nil
Token(TkRD_COMMENT, res)
Token(TkCOMMENT, res)
end
@OP.def_rule("\n") do |op, io|