diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-22 13:37:39 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-11-22 13:37:39 +0000 |
commit | 0d96951da43aa6407661ae5de362c5d2309c525c (patch) | |
tree | 193c18f20366712c7225878ae5d18fd4f840aa0d | |
parent | e4ac6be842c0c61330f90f25a14cf3c5f6955d95 (diff) | |
download | ruby-0d96951da43aa6407661ae5de362c5d2309c525c.tar.gz ruby-0d96951da43aa6407661ae5de362c5d2309c525c.tar.xz ruby-0d96951da43aa6407661ae5de362c5d2309c525c.zip |
Don't include 'require's with variable arguments
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -1,3 +1,8 @@ +Mon Nov 22 22:33:02 2004 Dave Thomas <dave@pragprog.com> + + * lib/rdoc/parsers/parse_rb.rb (RDoc::parse_require): Don't use names + of variables or constants when parsing 'require' + Mon Nov 22 00:13:35 2004 Yukihiro Matsumoto <matz@ruby-lang.org> * dir.c (dir_seek): should retrieve dir_data after NUM2INT(). diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index 8f1206409..1a61c4bf1 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -2389,12 +2389,12 @@ module RDoc case tk when TkSTRING name = tk.text - when TkCONSTANT, TkIDENTIFIER, TkIVAR, TkGVAR - name = tk.name +# when TkCONSTANT, TkIDENTIFIER, TkIVAR, TkGVAR +# name = tk.name when TkDSTRING warn "Skipping require of dynamic string: #{tk.text}" - else - warn "'require' used as variable" + # else + # warn "'require' used as variable" end if name context.add_require(Require.new(name, comment)) |