mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Adjust indents
This commit is contained in:
parent
72a4e1d3bb
commit
28933c1071
1 changed files with 9 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
<%
|
<% #-*- mode: ruby -*-
|
||||||
#
|
#
|
||||||
# OnigEncodingDefine(foo, Foo) = {
|
# OnigEncodingDefine(foo, Foo) = {
|
||||||
# ..
|
# ..
|
||||||
|
@ -70,13 +70,13 @@ encdirs.each do |encdir|
|
||||||
encodings << $1
|
encodings << $1
|
||||||
when /^ENC_REPLICATE\(\s*"([^"]+)"\s*,\s*"([^"]+)"/
|
when /^ENC_REPLICATE\(\s*"([^"]+)"\s*,\s*"([^"]+)"/
|
||||||
raise ArgumentError,
|
raise ArgumentError,
|
||||||
'%s:%d: ENC_REPLICATE: %s is not defined yet. (replica %s)' %
|
'%s:%d: ENC_REPLICATE: %s is not defined yet. (replica %s)' %
|
||||||
[fn, f.lineno, $2, $1] unless defs[$2.upcase]
|
[fn, f.lineno, $2, $1] unless defs[$2.upcase]
|
||||||
count += 1
|
count += 1
|
||||||
when /^ENC_ALIAS\(\s*"([^"]+)"\s*,\s*"([^"]+)"/
|
when /^ENC_ALIAS\(\s*"([^"]+)"\s*,\s*"([^"]+)"/
|
||||||
raise ArgumentError,
|
raise ArgumentError,
|
||||||
'%s:%d: ENC_ALIAS: %s is not defined yet. (alias %s)' %
|
'%s:%d: ENC_ALIAS: %s is not defined yet. (alias %s)' %
|
||||||
[fn, f.lineno, $2, $1] unless defs[$2.upcase]
|
[fn, f.lineno, $2, $1] unless defs[$2.upcase]
|
||||||
when /^ENC_DUMMY\w*\(\s*"([^"]+)"/
|
when /^ENC_DUMMY\w*\(\s*"([^"]+)"/
|
||||||
count += 1
|
count += 1
|
||||||
else
|
else
|
||||||
|
@ -89,12 +89,13 @@ encdirs.each do |encdir|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
encodings.each_with_index do |e, i|
|
-%>
|
||||||
%>ENC_DEFINE("<%=e%>");
|
% encodings.each_with_index do |e, i|
|
||||||
|
ENC_DEFINE("<%=e%>");
|
||||||
% end
|
% end
|
||||||
% encidx = encodings.size - 1
|
% encidx = encodings.size - 1
|
||||||
% lines.each do |line|
|
% lines.each do |line|
|
||||||
<%=line%>
|
<%=line%><%#=%%%>
|
||||||
% end
|
% end
|
||||||
|
|
||||||
#define ENCODING_COUNT <%=count%>
|
#define ENCODING_COUNT <%=count%>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue