summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-21 11:08:02 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-21 11:08:02 +0900
commit28933c1071b2238066fdc428208745507de33a63 (patch)
tree6da130f1374b233840f85e8ea32b06a242c53740
parent72a4e1d3bbbdfff71ec2c6b2ddb3b9323193cacd (diff)
Adjust indents
-rw-r--r--template/encdb.h.tmpl17
1 files changed, 9 insertions, 8 deletions
diff --git a/template/encdb.h.tmpl b/template/encdb.h.tmpl
index b3bd54548a..b797099ce1 100644
--- a/template/encdb.h.tmpl
+++ b/template/encdb.h.tmpl
@@ -1,4 +1,4 @@
-<%
+<% #-*- mode: ruby -*-
#
# OnigEncodingDefine(foo, Foo) = {
# ..
@@ -70,13 +70,13 @@ encdirs.each do |encdir|
encodings << $1
when /^ENC_REPLICATE\(\s*"([^"]+)"\s*,\s*"([^"]+)"/
raise ArgumentError,
- '%s:%d: ENC_REPLICATE: %s is not defined yet. (replica %s)' %
- [fn, f.lineno, $2, $1] unless defs[$2.upcase]
+ '%s:%d: ENC_REPLICATE: %s is not defined yet. (replica %s)' %
+ [fn, f.lineno, $2, $1] unless defs[$2.upcase]
count += 1
when /^ENC_ALIAS\(\s*"([^"]+)"\s*,\s*"([^"]+)"/
raise ArgumentError,
- '%s:%d: ENC_ALIAS: %s is not defined yet. (alias %s)' %
- [fn, f.lineno, $2, $1] unless defs[$2.upcase]
+ '%s:%d: ENC_ALIAS: %s is not defined yet. (alias %s)' %
+ [fn, f.lineno, $2, $1] unless defs[$2.upcase]
when /^ENC_DUMMY\w*\(\s*"([^"]+)"/
count += 1
else
@@ -89,12 +89,13 @@ encdirs.each do |encdir|
end
end
end
-encodings.each_with_index do |e, i|
-%>ENC_DEFINE("<%=e%>");
+-%>
+% encodings.each_with_index do |e, i|
+ENC_DEFINE("<%=e%>");
% end
% encidx = encodings.size - 1
% lines.each do |line|
-<%=line%>
+<%=line%><%#=%%%>
% end
#define ENCODING_COUNT <%=count%>