summaryrefslogtreecommitdiff
path: root/defs/id.def
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-14 06:55:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-14 06:55:05 +0000
commitab1576704f0ee380c0d1e1476f089ada0fb65ddc (patch)
tree405758a39c0872522818d456ff8f0fe0c9c76d40 /defs/id.def
parentb2acfab28872b090d38daaddce408f70cdf8e167 (diff)
downloadbundler-ab1576704f0ee380c0d1e1476f089ada0fb65ddc.tar.gz
id.def: attrset
* defs/id.def: add attrset IDs, which no longer shares serial numbers with local name IDs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'defs/id.def')
-rw-r--r--defs/id.def5
1 files changed, 3 insertions, 2 deletions
diff --git a/defs/id.def b/defs/id.def
index 224ed70576..6bf185470e 100644
--- a/defs/id.def
+++ b/defs/id.def
@@ -73,6 +73,7 @@ instance_ids = []
global_ids = []
const_ids = []
class_ids = []
+attrset_ids = []
names = {}
predefined.split(/^/).each_with_index do |line, num|
next if /^#/ =~ line
@@ -102,8 +103,7 @@ predefined.split(/^/).each_with_index do |line, num|
when /\A\$(?:\d+|(?!\d)\w+)\z/; global_ids
when /\A@@(?!\d)\w+\z/; class_ids
when /\A@(?!\d)\w+\z/; instance_ids
- when /\A((?!\d)\w+)=\z/
- KeywordError.raise("use ID2ATTRSET(#{$1}) instead of ATTRSET #{name}", firstline+num)
+ when /\A((?!\d)\w+)=\z/; attrset_ids
else preserved_ids
end << token
predefined_ids[token] = name
@@ -114,6 +114,7 @@ end
"GLOBAL" => global_ids,
"CONST" => const_ids,
"CLASS" => class_ids,
+ "ATTRSET" => attrset_ids,
:preserved => preserved_ids,
:predefined => predefined_ids,
}