diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-11-30 22:59:15 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-12-09 15:40:04 +0900 |
commit | acd857b9897cf98994e9d798f4e9179cf4a8d6e0 (patch) | |
tree | 6137f4efb149a3aeaeb0ee6272ee8dcb9961efb2 /lib/rdoc/rd | |
parent | b749bc05d0c54ced973628372f43085a9719aa2e (diff) |
[ruby/rdoc] Non-RD part feature has not been imported to RDoc
https://github.com/ruby/rdoc/commit/fe0159de2f
Diffstat (limited to 'lib/rdoc/rd')
-rw-r--r-- | lib/rdoc/rd/block_parser.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rdoc/rd/block_parser.rb b/lib/rdoc/rd/block_parser.rb index 1241f81762..bfcc126ed2 100644 --- a/lib/rdoc/rd/block_parser.rb +++ b/lib/rdoc/rd/block_parser.rb @@ -127,15 +127,19 @@ def next_token # :nodoc: # non-RD part begin when /^=begin\s+(\w+)/ part = $1 +=begin # not imported to RDoc if @in_part # if in non-RD part @part_content.push(line) else @in_part = part if @tree.filter[part] # if filter exists # p "BEGIN_PART: #{@in_part}" # DEBUG end +=end + @in_part = part # non-RD part end when /^=end/ if @in_part # if in non-RD part +=begin # not imported to RDoc # p "END_PART: #{@in_part}" # DEBUG # make Part-in object part = RDoc::RD::Part.new(@part_content.join(""), @tree, "r") @@ -154,11 +158,14 @@ def next_token # :nodoc: end @in_part = nil return [:SUBTREE, subtree] +=end end else +=begin # not imported to RDoc if @in_part # if in non-RD part @part_content.push(line) end +=end end end |