summaryrefslogtreecommitdiff
path: root/tool/transcode-tblgen.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-05 21:24:42 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-05 21:24:42 +0000
commitfb9c53dea50fbbf7d789f0cac004a00c6d125022 (patch)
tree76dba7a7c896c5dcdb69656425395a6f2b3d8afe /tool/transcode-tblgen.rb
parentdc98e2528a3d553a6ea7028482df8d5c48582601 (diff)
* tool/transcode-tblgen.rb (StrSet.parse): accept upper case
hexadecimal digits. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/transcode-tblgen.rb')
-rw-r--r--tool/transcode-tblgen.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb
index 3032b11..2ed9f13 100644
--- a/tool/transcode-tblgen.rb
+++ b/tool/transcode-tblgen.rb
@@ -36,11 +36,11 @@ class StrSet
seq = $'
set_result = []
set.scan(/[^,]+/) {|range|
- if /\A([0-9a-f][0-9a-f])-([0-9a-f][0-9a-f])\z/ =~ range
+ if /\A([0-9a-f][0-9a-f])-([0-9a-f][0-9a-f])\z/i =~ range
b = $1.to_i(16)
e = $2.to_i(16)
set_result << (b..e)
- elsif /\A([0-9a-f][0-9a-f])\z/ =~ range
+ elsif /\A([0-9a-f][0-9a-f])\z/i =~ range
byte = $1.to_i(16)
set_result << (byte..byte)
else