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
@ -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>
|
Mon Nov 22 00:13:35 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* dir.c (dir_seek): should retrieve dir_data after NUM2INT().
|
* dir.c (dir_seek): should retrieve dir_data after NUM2INT().
|
||||||
|
@ -2389,12 +2389,12 @@ module RDoc
|
|||||||
case tk
|
case tk
|
||||||
when TkSTRING
|
when TkSTRING
|
||||||
name = tk.text
|
name = tk.text
|
||||||
when TkCONSTANT, TkIDENTIFIER, TkIVAR, TkGVAR
|
# when TkCONSTANT, TkIDENTIFIER, TkIVAR, TkGVAR
|
||||||
name = tk.name
|
# name = tk.name
|
||||||
when TkDSTRING
|
when TkDSTRING
|
||||||
warn "Skipping require of dynamic string: #{tk.text}"
|
warn "Skipping require of dynamic string: #{tk.text}"
|
||||||
else
|
# else
|
||||||
warn "'require' used as variable"
|
# warn "'require' used as variable"
|
||||||
end
|
end
|
||||||
if name
|
if name
|
||||||
context.add_require(Require.new(name, comment))
|
context.add_require(Require.new(name, comment))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user