Commit graph

72 commits

Author SHA1 Message Date
drbrain
07b132f742 Don't print warnings when -q is set.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-06-14 22:19:36 +00:00
matz
98d593dc9e * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_symbol_arg):
typo fixed.  a patch from Florian Gross <florg at florg.net>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-05-15 08:45:02 +00:00
ocean
0c344f2b59 * lib/rdoc/parsers/parse_rb.rb (read_escape): could not handle /\^/.
merged Mr. Ishizuka's lib/irb/ruby-lex.rb 's patch rev 1.29.
  [ruby-talk:181631] [ruby-dev:28404]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-28 15:27:24 +00:00
matz
729bafdf3a * lib/tracer.rb (Tracer::Tracer.add_filter): turn on tracer mode
only when caller() level size is one.  [ruby-core:07389]

* lib/rdoc/parsers/parse_rb.rb: need not to require "tracer".
  [ruby-core:07389]

* sample/rtags.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-02-18 15:38:56 +00:00
matz
90509da425 * eval.c (rb_call_super): should call method_missing if super is
called from Kernel method.

* eval.c (exec_under): frame during eval should preserve external
  information.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-11-01 13:45:00 +00:00
nobu
4a994c8454 * lib/rdoc/parsers/parse_c.rb (handle_class_module): handle a
module enclosed in a built-in module.  fixed: [ruby-talk:148239]

* lib/rdoc/parsers/parse_c.rb (find_body): allow macros as methods.

* lib/rdoc/parsers/parse_c.rb (find_call_seq): allow :nodoc: modifier
  in C.  [ruby-core:04572]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-15 15:00:11 +00:00
ocean
afdbd6fc52 restored @progress
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-14 02:23:45 +00:00
ocean
5bac006483 * lib/rdoc/parsers/parse_c.rb: more readability for mixing
progress "c..." and warning message.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-12 07:53:39 +00:00
ocean
bdbbf18c4a * lib/rdoc/parsers/parse_c.rb: show parsing progress for C files.
[ruby-core:4341] (based on Tilman Sauerbeck's patch)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-05-12 07:00:37 +00:00
nobu
f132f2705d * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#do_includes): replace
also locally defined modules.

* ext/iconv/iconv.c: backport Iconv::InvalidEncoding from CVS HEAD.

* ext/strscan/strscan.c: moved misplaced rdoc.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-03-04 10:39:46 +00:00
matz
2ef0c6a109 * document updates - [ruby-core:04296], [ruby-core:04301],
[ruby-core:04302], [ruby-core:04307]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-01-24 06:45:50 +00:00
dave
a4a18e67e0 1.8 doesn't have String#clear
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-06 01:19:06 +00:00
dave
e28c8d2c52 Ignore leading and trailing lines in :section: blocks
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-04 05:38:17 +00:00
dave
8d68de2482 Fix problem with :section: and new 1.9
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-26 04:32:11 +00:00
dave
02942d87b9 Don't include 'require's with variable arguments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-22 13:37:39 +00:00
dave
3635edac9d 1. Force --inline-source if --one-file given
2. Add new :section: directive which starts a new section in the output.
   The title following :section: is used as the section heading, and the
   remainder of the comment containing the section is used as
   introductory text. Subsequent methods, aliases, attributes,
   and classes will be documented in this section.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-20 15:02:57 +00:00
dave
a7b4316a3a Fix bug where parent class wasn't being detected if the
child class was defined using the A::B notation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-08 13:25:26 +00:00
dave
3b832e90a2 RDoc can now deal with "attr" used as a variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-19 13:46:05 +00:00
dave
ff17f9ecbd Support "require" as variable name in RDoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-10-10 03:35:51 +00:00
dave
6a0f9a2c79 Fix up cross-file class merging
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-11 07:11:46 +00:00
dave
6022ebe824 Allow spaces around parameter to define_method_under
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-09-09 02:48:32 +00:00
dave
4742742880 Bugfix: looping on some toplevel symbols. Added SWIG support
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-08-02 02:59:17 +00:00
dave
353b6c6d03 Allow optional : before call-seq:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-12 17:21:21 +00:00
dave
c874753bb2 Commit miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-12 15:54:25 +00:00
dave
e6de7978a1 Support call-seq: for Ruby methods
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-12 15:52:35 +00:00
dave
03e766f2c3 Update comment to show call-seq example
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-07-07 02:15:17 +00:00
dave
256be3c09c Fixed parsing of %r{} when generating source popup
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-06-22 16:47:31 +00:00
dave
ea63eef678 Allow "do" after "for". Fix up css for standalone code window
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-26 05:02:55 +00:00
dave
69feb8d1a5 Add '()' around parameters that don't have them
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-21 00:23:34 +00:00
dave
ee94f995f9 At Ryan Davis' suggestion, honor visibility modifers if guarded by a statement modifier
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-20 03:36:43 +00:00
dave
3dbd32a214 Allow multiple arguments to include
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-07 13:14:58 +00:00
dave
45c79aacee Don't include &block if we have yield parameters
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-05 17:02:47 +00:00
dave
47feb25704 Fix parsing problem with yield within block
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-05-03 00:49:33 +00:00
dave
84aba62199 Allow for HAVE_PROTOTYPES macro
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-18 23:15:30 +00:00
dave
5946d5689b Change :enddoc: to terminate processing of current file
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-17 03:23:10 +00:00
dave
2be6b7f166 Fix :enddoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-10 14:52:30 +00:00
dave
354d68f80b Fix parse bug with toplevel methods. Allow RDoc in =begin rdoc/=end comments (experimental)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-04-02 01:20:58 +00:00
dave
c14a860044 Don't be as eager to invent classes to document
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-24 03:35:24 +00:00
dave
e6b408e6ef Allow aliases to have parentheses
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-03-01 03:26:05 +00:00
dave
0ad6793740 Handle :nodoc: om singleton classes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-29 14:16:33 +00:00
dave
99b56d2165 Handle class vars in code listings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-23 21:41:14 +00:00
dave
fe708e5bd7 Handle aliases in C files
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-23 21:34:01 +00:00
dave
261d63ae46 Fix constant value extraction. Escape HTML in constant values
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-23 21:10:42 +00:00
dave
b58e0bc73a miss
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-19 23:53:13 +00:00
eban
a278e7a612 * lib/rdoc/parsers/parse_c.rb: escape '{' and '}' to avoid warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-09 08:17:28 +00:00
dave
be44c886d4 Document lib/English. Add top-level aliases to rdoc html output
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-20 05:04:31 +00:00
dave
16b7b1fb95 Add explicit line breaks in method signatures for ri. Fixup some comments in object.c. Support changes comments for "in xxx.c"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-12 03:11:25 +00:00
dave
4cc80cdd0b Check for shebang line in file that would otherwise be treated as plain text
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-06 23:26:42 +00:00
dave
fbae4f97ee Add RDoc to build. Add --ri-system to RDoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-05 21:48:16 +00:00
dave
9f29ed5a1c Fix parsing where braces appear in method parameter list
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-01-05 15:12:53 +00:00