summaryrefslogtreecommitdiff
path: root/lib/rdoc/rd
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2022-11-30 23:04:45 +0900
committerNobuyoshi Nakada <[email protected]>2022-12-01 02:36:20 +0900
commitf0c9d2a0c801569725459420acefc8d983bbf307 (patch)
tree72ab81b3a5778e5eebe1cce0b6cdd06d4463c3ec /lib/rdoc/rd
parent99cad3fccdb9e7a66ff4c8231d43dafa336b2687 (diff)
[ruby/rdoc] Fix `=end` delimiter
https://github.com/ruby/rdoc/commit/e1679fa7e4
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6835
Diffstat (limited to 'lib/rdoc/rd')
-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