mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
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:
parent
918f625a5e
commit
cc2a16d94d
49 changed files with 2119 additions and 273 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue