summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tool/ruby_vm/views/_insn_type_chars.erb6
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/ruby_vm/views/_insn_type_chars.erb b/tool/ruby_vm/views/_insn_type_chars.erb
index 296004d458..b3eff5624f 100644
--- a/tool/ruby_vm/views/_insn_type_chars.erb
+++ b/tool/ruby_vm/views/_insn_type_chars.erb
@@ -5,8 +5,8 @@
%# granted, to either redistribute and/or modify this file, provided that the
%# conditions mentioned in the file COPYING are met. Consult the file for
%# details.
+%
+% map = RubyVM::Typemap.each_pair.map {|k, (c, t)| sprintf "%s = '%s'", t, c }
enum ruby_insn_type_chars {
-% RubyVM::Typemap.each_pair do |k, (c, t)|
- <%= t %> = '<%= c %>',
-% end
+ <%= map.join(",\n ") %>
};