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 | d9d5c88cf3259b793724c5cfe70146cc69e0066b (patch) | |
tree | 193c18f20366712c7225878ae5d18fd4f840aa0d /lib/rdoc/parsers | |
parent | f1f0ca312f88e44372c6550a4d425bbf061c551a (diff) | |
download | ruby-d9d5c88cf3259b793724c5cfe70146cc69e0066b.tar.gz |
Don't include 'require's with variable arguments
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/parsers')
-rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index 8f1206409a..1a61c4bf1e 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)) |