Skip to content

Commit 92c2420

Browse files
committed
Reformat source code to use tabs for indentation.
Requires some bugfixes to LuaFormatter's handling of tabs.
1 parent ab05023 commit 92c2420

File tree

2 files changed

+403
-403
lines changed

2 files changed

+403
-403
lines changed

diff.cxx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ extern "C" {
1010

1111
/** diff() Lua function. */
1212
static int diff(lua_State *L) {
13-
diff_match_patch<std::string> dmp;
14-
auto diffs = dmp.diff_main(luaL_checkstring(L, 1), luaL_checkstring(L, 2), false);
15-
dmp.diff_cleanupSemantic(diffs);
16-
lua_createtable(L, diffs.size() * 2, 0);
17-
int len = 1;
18-
for (auto &diff : diffs) {
19-
lua_pushnumber(L, diff.operation), lua_rawseti(L, -2, len++);
20-
lua_pushstring(L, diff.text.c_str()), lua_rawseti(L, -2, len++);
21-
}
22-
return 1;
13+
diff_match_patch<std::string> dmp;
14+
auto diffs = dmp.diff_main(luaL_checkstring(L, 1), luaL_checkstring(L, 2), false);
15+
dmp.diff_cleanupSemantic(diffs);
16+
lua_createtable(L, diffs.size() * 2, 0);
17+
int len = 1;
18+
for (auto &diff : diffs) {
19+
lua_pushnumber(L, diff.operation), lua_rawseti(L, -2, len++);
20+
lua_pushstring(L, diff.text.c_str()), lua_rawseti(L, -2, len++);
21+
}
22+
return 1;
2323
}
2424

2525
extern "C" {

0 commit comments

Comments
 (0)