From 94a4bc0ef4165e42ec36c9562ce7a7bcf01ba1cf Mon Sep 17 00:00:00 2001
From: nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Fri, 21 Dec 2012 07:38:11 +0000
Subject: id.h.tmpl: ID2ATTRSET

* template/id.h.tmpl (ID2ATTRSET): compile time constant macro for
  ID_ATTRSET.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
---
 defs/id.def | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'defs/id.def')

diff --git a/defs/id.def b/defs/id.def
index 48c6334227..1196e8fa9a 100644
--- a/defs/id.def
+++ b/defs/id.def
@@ -72,6 +72,8 @@ predefined.lines.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)
   else preserved_ids
   end << token
   predefined_ids[token] = name
-- 
cgit v1.2.3

