Skip to content

Commit e1679fa

Browse files
committed
Fix =end delimiter
1 parent fe0159d commit e1679fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/rd/block_parser.ry

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def next_token # :nodoc:
349349
=end
350350
@in_part = part
351351
# non-RD part end
352-
when /^=end/
352+
when /^=end(?:$|[\s\0\C-d\C-z])/
353353
if @in_part # if in non-RD part
354354
=begin # not imported to RDoc
355355
# p "END_PART: #{@in_part}" # DEBUG

0 commit comments

Comments
 (0)