At Ryan Davis' suggestion, honor visibility modifers if guarded by a statement modifier

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
dave 2004-05-20 03:36:43 +00:00
Родитель 41e4c5de36
Коммит cc7c48ff6a
2 изменённых файлов: 13 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Thu May 20 12:34:39 2004 Dave Thomas <dave@pragprog.com>
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_visibility):
At Ryan Davis' suggestion, honor visibility modifers if guarded by a
statement modifier
Thu May 20 12:22:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu May 20 12:22:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/mkmf.rb (have_type): do not check pointer to incomplete type, * lib/mkmf.rb (have_type): do not check pointer to incomplete type,

Просмотреть файл

@ -2450,7 +2450,13 @@ module RDoc
end end
skip_tkspace_comment(false) skip_tkspace_comment(false)
if peek_tk.kind_of? TkNL case peek_tk
# Ryan Davis suggested the extension to ignore modifiers, because he
# often writes
#
# protected unless $TESTING
#
when TkNL, TkUNLESS_MOD, TkIF_MOD
# error("Missing argument") if singleton # error("Missing argument") if singleton
container.ongoing_visibility = vis container.ongoing_visibility = vis
else else