diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/rdoc/markup/simple_markup/preprocess.rb | 2 | ||||
-rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 2 |
3 files changed, 7 insertions, 3 deletions
@@ -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> * io.c (io_read): move StringValue() check before GetOpenFile(). diff --git a/lib/rdoc/markup/simple_markup/preprocess.rb b/lib/rdoc/markup/simple_markup/preprocess.rb index dbf4b216ca..bbbae1b77c 100644 --- a/lib/rdoc/markup/simple_markup/preprocess.rb +++ b/lib/rdoc/markup/simple_markup/preprocess.rb @@ -19,13 +19,11 @@ module SM def handle(text) text.gsub!(/^([ \t#]*):(\w+):\s*(.+)?\n/) do - prefix = $1 directive = $2.downcase param = $3 case directive - when "include" filename = param.split[0] include_file(filename, prefix) diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index 1a61c4bf1e..2f76b95d31 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -2312,7 +2312,7 @@ module RDoc when "section" context.set_current_section(param, comment) comment.clear - "" + break else warn "Unrecognized directive '#{directive}'" break |