mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* def/id.def: use split(/^/) instead of String#lines to support
Ruby 1.8.5 as BASERUBY. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
109d71ac71
commit
8654730aa8
2 changed files with 6 additions and 1 deletions
|
@ -47,7 +47,7 @@ global_ids = []
|
|||
const_ids = []
|
||||
class_ids = []
|
||||
names = {}
|
||||
predefined.lines.each_with_index do |line, num|
|
||||
predefined.split(/^/).each_with_index do |line, num|
|
||||
next if /^#/ =~ line or (name, token = line.split; !name)
|
||||
token ||= name
|
||||
if /#/ =~ token
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue