diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-10 03:35:51 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-10 03:35:51 +0000 |
commit | ac05a134ea6fcdbb73def67f3da61949f10cc5a1 (patch) | |
tree | 8ecc21efea5fdc201a1b6fbd161f47c2453e9bb7 /lib/rdoc/parsers | |
parent | 9afbaffe4df85d72e2281817d39e12bf2b3cc520 (diff) | |
download | ruby-ac05a134ea6fcdbb73def67f3da61949f10cc5a1.tar.gz ruby-ac05a134ea6fcdbb73def67f3da61949f10cc5a1.tar.xz ruby-ac05a134ea6fcdbb73def67f3da61949f10cc5a1.zip |
Support "require" as variable name in RDoc
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/parsers')
-rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index 90194e069..e862cc71e 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -2406,10 +2406,12 @@ module RDoc when TkDSTRING warn "Skipping require of dynamic string: #{tk.text}" else - error("Unknown argument type to require: #{tk}") + warn "'require' used as variable" end if name context.add_require(Require.new(name, comment)) + else + unget_tk(tk) end end |