summaryrefslogtreecommitdiff
path: root/lib/rdoc/rd/block_parser.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/rd/block_parser.rb')
-rw-r--r--lib/rdoc/rd/block_parser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/rd/block_parser.rb b/lib/rdoc/rd/block_parser.rb
index bfcc126ed2..6f70622c0b 100644
--- a/lib/rdoc/rd/block_parser.rb
+++ b/lib/rdoc/rd/block_parser.rb
@@ -137,7 +137,7 @@ def next_token # :nodoc:
=end
@in_part = part
# non-RD part end
- when /^=end/
+ when /^=end(?:$|[\s\0\C-d\C-z])/
if @in_part # if in non-RD part
=begin # not imported to RDoc
# p "END_PART: #{@in_part}" # DEBUG