mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/transcode-tblgen.rb (import_ucm): don't use \h because the
script should work with ruby 1.8. * tool/enc-unicode.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f5d724ab19
commit
375fd3152f
3 changed files with 12 additions and 5 deletions
|
@ -137,7 +137,7 @@ def parse_scripts(data)
|
|||
make_const(current, cps, file[:title])
|
||||
(names[file[:title]] ||= []) << current
|
||||
cps = []
|
||||
elsif /^(\h+)(?:..(\h+))?\s*;\s*(\w+)/ =~ line
|
||||
elsif /^([0-9a-fA-F]+)(?:..([0-9a-fA-F]+))?\s*;\s*(\w+)/ =~ line
|
||||
current = $3
|
||||
$2 ? cps.concat(($1.to_i(16)..$2.to_i(16)).to_a) : cps.push($1.to_i(16))
|
||||
end
|
||||
|
@ -192,7 +192,7 @@ def parse_age(data)
|
|||
ages << current
|
||||
last_constname = constname
|
||||
cps = []
|
||||
elsif /^(\h+)(?:..(\h+))?\s*;\s*(\d+\.\d+)/ =~ line
|
||||
elsif /^([0-9a-fA-F]+)(?:..([0-9a-fA-F]+))?\s*;\s*(\d+\.\d+)/ =~ line
|
||||
current = $3
|
||||
$2 ? cps.concat(($1.to_i(16)..$2.to_i(16)).to_a) : cps.push($1.to_i(16))
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue