mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
accept space characters at the end of a prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f479ed6da6
commit
16cb9d65ed
1 changed files with 2 additions and 2 deletions
|
@ -38,10 +38,10 @@ module DL
|
|||
case proto
|
||||
when /^([\d\w\*_\s]+)\(([\d\w\*_\s\,\[\]]*)\)$/
|
||||
ret = $1
|
||||
args = $2
|
||||
args = $2.strip()
|
||||
ret = ret.split(/\s+/)
|
||||
args = args.split(/\s*,\s*/)
|
||||
func = ret.pop
|
||||
func = ret.pop()
|
||||
if( func =~ /^\*/ )
|
||||
func.gsub!(/^\*+/,"")
|
||||
ret.push("*")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue