mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Allow aliases to have parentheses
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
63fba925c3
commit
b84917766d
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Mar 1 12:24:10 2004 Dave Thomas <dave@pragprog.com>
|
||||
|
||||
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_alias):
|
||||
Allow aliases to have parentheses
|
||||
|
||||
Sun Feb 29 23:14:53 2004 Dave Thomas <dave@pragprog.com>
|
||||
|
||||
* lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_class):
|
||||
|
|
|
@ -2311,6 +2311,10 @@ module RDoc
|
|||
|
||||
def parse_alias(context, single, tk, comment)
|
||||
skip_tkspace
|
||||
if (peek_tk.kind_of? TkLPAREN)
|
||||
get_tk
|
||||
skip_tkspace
|
||||
end
|
||||
new_name = get_symbol_or_name
|
||||
@scanner.instance_eval{@lex_state = EXPR_FNAME}
|
||||
skip_tkspace
|
||||
|
|
Loading…
Reference in a new issue