mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
81f62f41f1
commit
b58e0bc73a
2 changed files with 24 additions and 9 deletions
|
@ -44,6 +44,27 @@
|
||||||
#
|
#
|
||||||
# C classes can be diagramed (see /tc/dl/ruby/ruby/error.c), and RDoc
|
# C classes can be diagramed (see /tc/dl/ruby/ruby/error.c), and RDoc
|
||||||
# integrates C and Ruby source into one tree
|
# integrates C and Ruby source into one tree
|
||||||
|
#
|
||||||
|
# The comment blocks may include special direcives:
|
||||||
|
#
|
||||||
|
# [Document-class: <i>name</i>]
|
||||||
|
# This comment block is documentation for the given class. Use this
|
||||||
|
# when the <tt>Init_xxx</tt> method is not named after the class.
|
||||||
|
#
|
||||||
|
# [Document-method: <i>name</i>]
|
||||||
|
# This comment documents the named method. Use when RDoc cannot outomatically
|
||||||
|
# find the method from it's declaration
|
||||||
|
#
|
||||||
|
# [call-seq: <i>text up to an empty line</i>]
|
||||||
|
# Because C source doesn't give descripive names to Ruby-level parameters,
|
||||||
|
# you need to document the calling sequence explicitly
|
||||||
|
#
|
||||||
|
# In additon, RDoc assumes by default that the C method implementing a
|
||||||
|
# Ruby function is in the same source file as the rb_define_method call.
|
||||||
|
# If this isn't the case, add the comment
|
||||||
|
#
|
||||||
|
# rb_define_method(....); // in: filename
|
||||||
|
#
|
||||||
|
|
||||||
# Classes and modules built in to the interpreter. We need
|
# Classes and modules built in to the interpreter. We need
|
||||||
# these to define superclasses of user objects
|
# these to define superclasses of user objects
|
||||||
|
|
|
@ -1999,10 +1999,6 @@ module RDoc
|
||||||
break
|
break
|
||||||
when TkLBRACE
|
when TkLBRACE
|
||||||
nest += 1
|
nest += 1
|
||||||
when TkLBRACE
|
|
||||||
nest += 1
|
|
||||||
when TkLBRACE
|
|
||||||
nest += 1
|
|
||||||
when TkRBRACE
|
when TkRBRACE
|
||||||
nest -= 1
|
nest -= 1
|
||||||
break if nest <= 0
|
break if nest <= 0
|
||||||
|
@ -2045,8 +2041,7 @@ module RDoc
|
||||||
"#{@scanner.lex_state} #{nest}") if $DEBUG
|
"#{@scanner.lex_state} #{nest}") if $DEBUG
|
||||||
case tk
|
case tk
|
||||||
when TkSEMICOLON
|
when TkSEMICOLON
|
||||||
nest -= 1
|
break
|
||||||
break if nest <= 0
|
|
||||||
when TkLPAREN, TkfLPAREN
|
when TkLPAREN, TkfLPAREN
|
||||||
nest += 1
|
nest += 1
|
||||||
when TkDO
|
when TkDO
|
||||||
|
@ -2117,8 +2112,7 @@ module RDoc
|
||||||
"#{@scanner.lex_state} #{nest}") if $DEBUG
|
"#{@scanner.lex_state} #{nest}") if $DEBUG
|
||||||
case tk
|
case tk
|
||||||
when TkSEMICOLON
|
when TkSEMICOLON
|
||||||
nest -= 1
|
break
|
||||||
break if nest <= 0
|
|
||||||
when TkLPAREN, TkfLPAREN
|
when TkLPAREN, TkfLPAREN
|
||||||
nest += 1
|
nest += 1
|
||||||
when end_token
|
when end_token
|
||||||
|
@ -2313,13 +2307,13 @@ module RDoc
|
||||||
skip_tkspace
|
skip_tkspace
|
||||||
new_name = get_symbol_or_name
|
new_name = get_symbol_or_name
|
||||||
@scanner.instance_eval{@lex_state = EXPR_FNAME}
|
@scanner.instance_eval{@lex_state = EXPR_FNAME}
|
||||||
|
|
||||||
skip_tkspace
|
skip_tkspace
|
||||||
if (peek_tk.kind_of? TkCOMMA)
|
if (peek_tk.kind_of? TkCOMMA)
|
||||||
get_tk
|
get_tk
|
||||||
skip_tkspace
|
skip_tkspace
|
||||||
end
|
end
|
||||||
old_name = get_symbol_or_name
|
old_name = get_symbol_or_name
|
||||||
|
|
||||||
al = Alias.new(get_tkread, old_name, new_name, comment)
|
al = Alias.new(get_tkread, old_name, new_name, comment)
|
||||||
read_documentation_modifiers(al, ATTR_MODIFIERS)
|
read_documentation_modifiers(al, ATTR_MODIFIERS)
|
||||||
if al.document_self
|
if al.document_self
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue