aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-11-30 23:04:45 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-01 02:36:20 +0900
commitf0c9d2a0c801569725459420acefc8d983bbf307 (patch)
tree72ab81b3a5778e5eebe1cce0b6cdd06d4463c3ec /lib
parent99cad3fccdb9e7a66ff4c8231d43dafa336b2687 (diff)
downloadruby-f0c9d2a0c801569725459420acefc8d983bbf307.tar.gz
[ruby/rdoc] Fix `=end` delimiter
https://github.com/ruby/rdoc/commit/e1679fa7e4
Diffstat (limited to 'lib')
-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