mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
f1f0ca312f
commit
d9d5c88cf3
2 changed files with 9 additions and 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().
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue