diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-19 13:46:05 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-19 13:46:05 +0000 |
commit | 3b832e90a2764e5e143b25e9e5473796b5a790af (patch) | |
tree | 2244da9c25905cbb194cc2166f5083be17f9dedb | |
parent | cfa37a9deff6c37aacce90c658f2c2be8512cfa0 (diff) |
RDoc can now deal with "attr" used as a variable
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +Tue Oct 19 22:43:12 2004 Dave Thomas <dave@pragprog.com> + + * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_attr): If + we come across 'attr' in a context where it isn't + followed by a symbol, just issue a warning. + Tue Oct 19 20:41:37 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp> * ext/win32ole.c(ole_invoke): retrieve the result value when diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index e862cc71e1..5a98258f7e 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -2459,7 +2459,7 @@ module RDoc context.add_attribute(att) end else - error("Missing argument to 'attr'") + warn("'attr' ignored - looks like a variable") end end |