Skip to content

Commit e928b05

Browse files
committed
Change Lua files indentation to tab
1 parent 74f1b05 commit e928b05

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ indent_style = space
77
indent_size = 2
88
insert_final_newline = true
99

10-
[*.{c,cpp,h,hpp,gd}]
10+
[*.{c,cpp,h,hpp,gd,lua}]
1111
indent_style = tab
1212
indent_size = 4
1313

test/lua_tests/array_iterate.lua

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
function test_iteration(n)
2-
local arr = Array()
3-
for i = 1, n do
4-
arr:append(i)
5-
end
2+
local arr = Array()
3+
for i = 1, n do
4+
arr:append(i)
5+
end
66

7-
local iteration_count = 0
8-
for i, v in pairs(arr) do
9-
iteration_count = iteration_count + 1
10-
end
11-
assert(iteration_count == arr:size(), "Array pairs did not iterate over all " .. arr:size() .. " items")
7+
local iteration_count = 0
8+
for i, v in pairs(arr) do
9+
iteration_count = iteration_count + 1
10+
end
11+
assert(iteration_count == arr:size(), "Array pairs did not iterate over all " .. arr:size() .. " items")
1212
end
1313

1414
for i = 0, 5 do
15-
test_iteration(i)
15+
test_iteration(i)
1616
end
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
function test_iteration(n)
2-
local dict = Dictionary()
3-
for i = 1, n do
4-
dict[i] = "Hello " .. i
5-
end
2+
local dict = Dictionary()
3+
for i = 1, n do
4+
dict[i] = "Hello " .. i
5+
end
66

7-
local iteration_count = 0
8-
for i, v in pairs(dict) do
9-
iteration_count = iteration_count + 1
10-
end
11-
assert(iteration_count == dict:size())
7+
local iteration_count = 0
8+
for i, v in pairs(dict) do
9+
iteration_count = iteration_count + 1
10+
end
11+
assert(iteration_count == dict:size())
1212
end
1313

1414
for i = 0, 5 do
15-
test_iteration(i)
15+
test_iteration(i)
1616
end

0 commit comments

Comments
 (0)