From a4ee51f7b995f85997bf68b83362a98e516e142b Mon Sep 17 00:00:00 2001 From: dave Date: Tue, 19 Oct 2004 13:46:05 +0000 Subject: RDoc can now deal with "attr" used as a variable git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ lib/rdoc/parsers/parse_rb.rb | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 843792d3c..7523d3f20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Oct 19 22:43:12 2004 Dave Thomas + + * 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:32:50 2004 Masaki Suketa * 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 e862cc71e..5a98258f7 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 -- cgit