# HG changeset patch # User Matthew Wild # Date 1273011101 -3600 # Node ID c1a2e210f47e59a847916dc2a09d1f222b7b0845 # Parent f37dc6f038f34b2d37c3cd1719b367cbeac0e9a8 configmanager: Fix very wacky indentation diff -r f37dc6f038f3 -r c1a2e210f47e core/configmanager.lua --- a/core/configmanager.lua Tue May 04 23:07:49 2010 +0100 +++ b/core/configmanager.lua Tue May 04 23:11:41 2010 +0100 @@ -113,16 +113,19 @@ function parsers.lua.load(data, filename) local env; -- The ' = true' are needed so as not to set off __newindex when we assign the functions below - env = setmetatable({ Host = true; host = true; Component = true, component = true, - Include = true, include = true, RunScript = dofile }, { __index = function (t, k) - return rawget(_G, k) or - function (settings_table) - config[__currenthost or "*"][k] = settings_table; - end; - end, - __newindex = function (t, k, v) - set(env.__currenthost or "*", "core", k, v); - end}); + env = setmetatable({ + Host = true; host = true; Component = true, component = true, + Include = true, include = true, RunScript = dofile }, { + __index = function (t, k) + return rawget(_G, k) or + function (settings_table) + config[__currenthost or "*"][k] = settings_table; + end; + end, + __newindex = function (t, k, v) + set(env.__currenthost or "*", "core", k, v); + end + }); rawset(env, "__currenthost", "*") -- Default is global function env.Host(name)