Fix problem with :section: and new 1.9
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dbb9181a8c
commit
a052ef75ab
@ -1,3 +1,9 @@
|
|||||||
|
Fri Nov 26 13:29:02 2004 Dave Thomas <dave@pragprog.com>
|
||||||
|
|
||||||
|
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::look_for_directives_in): Break
|
||||||
|
out of preprocessing when we find a :section: directive (previously cleared out the
|
||||||
|
comment, but this apparently now generates an error in gsub!)
|
||||||
|
|
||||||
Fri Nov 26 00:17:40 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Nov 26 00:17:40 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (io_read): move StringValue() check before GetOpenFile().
|
* io.c (io_read): move StringValue() check before GetOpenFile().
|
||||||
|
@ -19,13 +19,11 @@ module SM
|
|||||||
|
|
||||||
def handle(text)
|
def handle(text)
|
||||||
text.gsub!(/^([ \t#]*):(\w+):\s*(.+)?\n/) do
|
text.gsub!(/^([ \t#]*):(\w+):\s*(.+)?\n/) do
|
||||||
|
|
||||||
prefix = $1
|
prefix = $1
|
||||||
directive = $2.downcase
|
directive = $2.downcase
|
||||||
param = $3
|
param = $3
|
||||||
|
|
||||||
case directive
|
case directive
|
||||||
|
|
||||||
when "include"
|
when "include"
|
||||||
filename = param.split[0]
|
filename = param.split[0]
|
||||||
include_file(filename, prefix)
|
include_file(filename, prefix)
|
||||||
|
@ -2312,7 +2312,7 @@ module RDoc
|
|||||||
when "section"
|
when "section"
|
||||||
context.set_current_section(param, comment)
|
context.set_current_section(param, comment)
|
||||||
comment.clear
|
comment.clear
|
||||||
""
|
break
|
||||||
else
|
else
|
||||||
warn "Unrecognized directive '#{directive}'"
|
warn "Unrecognized directive '#{directive}'"
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user