mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* backport r33087 from trunk
* lib/rdoc: Import RDoc 3.9.4. Typo and grammar fixes by Luke Gruber. [Ruby 1.9 - Bug #5203] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8b2a8e2b45
commit
33839f6711
5 changed files with 25 additions and 19 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
Sat Aug 27 08:44:58 2011 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
|
* backport r33087 from trunk
|
||||||
|
|
||||||
|
* lib/rdoc: Import RDoc 3.9.4. Typo and grammar fixes by Luke Gruber.
|
||||||
|
[Ruby 1.9 - Bug #5203]
|
||||||
|
|
||||||
Sat Aug 27 07:53:34 2011 Eric Hodel <drbrain@segment7.net>
|
Sat Aug 27 07:53:34 2011 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* backport r33087 from trunk.
|
* backport r33087 from trunk.
|
||||||
|
|
2
NEWS
2
NEWS
|
@ -258,7 +258,7 @@ with all sufficient information, see the ChangeLog file.
|
||||||
https://github.com/jimweirich/rake/blob/master/CHANGES
|
https://github.com/jimweirich/rake/blob/master/CHANGES
|
||||||
|
|
||||||
* RDoc
|
* RDoc
|
||||||
* RDoc has been upgraded to version 3.9.2. For full release notes see
|
* RDoc has been upgraded to version 3.9.4. For full release notes see
|
||||||
http://docs.seattlerb.org/rdoc/History_txt.html
|
http://docs.seattlerb.org/rdoc/History_txt.html
|
||||||
|
|
||||||
* rexml
|
* rexml
|
||||||
|
|
|
@ -104,7 +104,7 @@ module RDoc
|
||||||
##
|
##
|
||||||
# RDoc version you are using
|
# RDoc version you are using
|
||||||
|
|
||||||
VERSION = '3.9.3'
|
VERSION = '3.9.4'
|
||||||
|
|
||||||
##
|
##
|
||||||
# Method visibilities
|
# Method visibilities
|
||||||
|
|
|
@ -36,7 +36,7 @@ require 'rdoc'
|
||||||
# sequences, and to add special processing for text that matches a
|
# sequences, and to add special processing for text that matches a
|
||||||
# regular expression. Here we make WikiWords significant to the parser,
|
# regular expression. Here we make WikiWords significant to the parser,
|
||||||
# and also make the sequences {word} and \<no>text...</no> signify
|
# and also make the sequences {word} and \<no>text...</no> signify
|
||||||
# strike-through text. When then subclass the HTML output class to deal
|
# strike-through text. We then subclass the HTML output class to deal
|
||||||
# with these:
|
# with these:
|
||||||
#
|
#
|
||||||
# require 'rdoc/markup'
|
# require 'rdoc/markup'
|
||||||
|
@ -61,7 +61,7 @@ require 'rdoc'
|
||||||
#
|
#
|
||||||
# == Encoding
|
# == Encoding
|
||||||
#
|
#
|
||||||
# Where Encoding support is available RDoc will automatically convert all
|
# Where Encoding support is available, RDoc will automatically convert all
|
||||||
# documents to the same output encoding. The output encoding can be set via
|
# documents to the same output encoding. The output encoding can be set via
|
||||||
# RDoc::Options#encoding and defaults to Encoding.default_external.
|
# RDoc::Options#encoding and defaults to Encoding.default_external.
|
||||||
#
|
#
|
||||||
|
@ -127,7 +127,7 @@ require 'rdoc'
|
||||||
# === Simple Lists
|
# === Simple Lists
|
||||||
#
|
#
|
||||||
# If a paragraph starts with a "*", "-", "<digit>." or "<letter>.",
|
# If a paragraph starts with a "*", "-", "<digit>." or "<letter>.",
|
||||||
# then it is taken to be the start of a list. The margin in increased to be
|
# then it is taken to be the start of a list. The margin is increased to be
|
||||||
# the first non-space following the list start flag. Subsequent lines
|
# the first non-space following the list start flag. Subsequent lines
|
||||||
# should be indented to this new margin until the list ends. For example:
|
# should be indented to this new margin until the list ends. For example:
|
||||||
#
|
#
|
||||||
|
@ -444,10 +444,10 @@ require 'rdoc'
|
||||||
#
|
#
|
||||||
# [+:nodoc:+ / <tt>:nodoc: all</tt>]
|
# [+:nodoc:+ / <tt>:nodoc: all</tt>]
|
||||||
# This directive prevents documentation for the element from
|
# This directive prevents documentation for the element from
|
||||||
# being generated. For classes and modules, the methods, aliases,
|
# being generated. For classes and modules, methods, aliases,
|
||||||
# constants, and attributes directly within the affected class or
|
# constants, and attributes directly within the affected class or
|
||||||
# module also will be omitted. By default, though, modules and
|
# module also will be omitted. By default, though, modules and
|
||||||
# classes within that class of module _will_ be documented. This is
|
# classes within that class or module _will_ be documented. This is
|
||||||
# turned off by adding the +all+ modifier.
|
# turned off by adding the +all+ modifier.
|
||||||
#
|
#
|
||||||
# module MyModule # :nodoc:
|
# module MyModule # :nodoc:
|
||||||
|
@ -591,7 +591,7 @@ class RDoc::Markup
|
||||||
attr_reader :attribute_manager
|
attr_reader :attribute_manager
|
||||||
|
|
||||||
##
|
##
|
||||||
# Take a block of text and use various heuristics to determine it's
|
# Take a block of text and use various heuristics to determine its
|
||||||
# structure (paragraphs, lists, and so on). Invoke an event handler as we
|
# structure (paragraphs, lists, and so on). Invoke an event handler as we
|
||||||
# identify significant chunks.
|
# identify significant chunks.
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@ require 'rdoc/markup/pre_process'
|
||||||
require 'rdoc/stats'
|
require 'rdoc/stats'
|
||||||
|
|
||||||
##
|
##
|
||||||
# A parser is simple a class that implements
|
# A parser is a class that subclasses RDoc::Parser and implements
|
||||||
#
|
#
|
||||||
# #initialize(file_name, body, options)
|
# #initialize top_level, file_name, body, options, stats
|
||||||
#
|
#
|
||||||
# and
|
# and
|
||||||
#
|
#
|
||||||
|
@ -16,17 +16,16 @@ require 'rdoc/stats'
|
||||||
# and an RDoc::Options object. The scan method is then called to return an
|
# and an RDoc::Options object. The scan method is then called to return an
|
||||||
# appropriately parsed TopLevel code object.
|
# appropriately parsed TopLevel code object.
|
||||||
#
|
#
|
||||||
# The ParseFactory is used to redirect to the correct parser given a
|
# RDoc::Parser::for is a factory that creates the correct parser for a
|
||||||
# filename extension. This magic works because individual parsers have to
|
# given filename extension. Parsers have to register themselves RDoc::Parser
|
||||||
# register themselves with us as they are loaded in. The do this using the
|
# using parse_files_matching as when they are loaded:
|
||||||
# following incantation
|
|
||||||
#
|
#
|
||||||
# require "rdoc/parser"
|
# require "rdoc/parser"
|
||||||
#
|
#
|
||||||
# class RDoc::Parser::Xyz < RDoc::Parser
|
# class RDoc::Parser::Xyz < RDoc::Parser
|
||||||
# parse_files_matching /\.xyz$/ # <<<<
|
# parse_files_matching /\.xyz$/ # <<<<
|
||||||
#
|
#
|
||||||
# def initialize(file_name, body, options)
|
# def initialize top_level, file_name, body, options, stats
|
||||||
# ...
|
# ...
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
|
@ -35,8 +34,8 @@ require 'rdoc/stats'
|
||||||
# end
|
# end
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# Just to make life interesting, if we suspect a plain text file, we also
|
# If a plain text file is detected, RDoc also looks for a shebang line in case
|
||||||
# look for a shebang line just in case it's a potential shell script
|
# the file is a shell script.
|
||||||
|
|
||||||
class RDoc::Parser
|
class RDoc::Parser
|
||||||
|
|
||||||
|
@ -45,8 +44,8 @@ class RDoc::Parser
|
||||||
class << self
|
class << self
|
||||||
|
|
||||||
##
|
##
|
||||||
# A Hash that maps file extensions regular expressions to parsers that
|
# An Array of arrays that maps file extension (or name) regular
|
||||||
# will consume them.
|
# expressions to parser classes that will parse matching filenames.
|
||||||
#
|
#
|
||||||
# Use parse_files_matching to register a parser's file extensions.
|
# Use parse_files_matching to register a parser's file extensions.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue