summaryrefslogtreecommitdiff
path: root/template/id.c.tmpl
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-09-08 15:25:05 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-09-08 18:18:56 +0900
commita977c663123f7256f51201ed8390dc84adf63cf6 (patch)
tree69690f4a84665f7e66f9d07e217fee841d9f5e6e /template/id.c.tmpl
parent7400628cb054a9a9651d69411a100fc9d518099f (diff)
downloadruby-a977c663123f7256f51201ed8390dc84adf63cf6.tar.gz
Generate token ID indexes in id.def
Separate the logic accross the tables from the template view for id.h.
Diffstat (limited to 'template/id.c.tmpl')
-rw-r--r--template/id.c.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/id.c.tmpl b/template/id.c.tmpl
index 4f30875c04..5b9e879730 100644
--- a/template/id.c.tmpl
+++ b/template/id.c.tmpl
@@ -12,7 +12,7 @@
**********************************************************************/
<%
defs = File.join(File.dirname(File.dirname(erb.filename)), "defs/id.def")
-ids = eval(File.read(defs), binding, defs)
+ids = eval(File.read(defs), nil, defs)
ops = ids[:token_op].uniq {|id, op, token| token && op}
%>
% ops.each do |_id, _op, token|