X
Xikini
Guest
This bugs me everytime I tab tables, and I'm wondering if I'm simply not tabbing them correctly.
I'll show you how I expand and tab my tables, and hopefully someone can show me where I'm going wrong?
Everything lines up perfectly at this point.
If I add one more nested table, everything get's fudged up.
Am I suppose to keep the brackets on the same line, like this?
Or how am I supposed to do it?
I'll show you how I expand and tab my tables, and hopefully someone can show me where I'm going wrong?
Code:
local config = {
[1] = {},
[2] = {}
}
Code:
local config = {
[1] = {object = {
[1] = {},
[2] = {}
}
},
[2] = {object = {
[1] = {},
[2] = {}
}
}
}
If I add one more nested table, everything get's fudged up.
Code:
local config = {
[1] = {object = {
[1] = {object2 = {
[1] = {},
[2] = {}
}
},
[2] = {object2 = {
[1] = {},
[2] = {}
}
}
} -- these don't line up properly
},
[2] = {object = {
[1] = {object2 = {
[1] = {},
[2] = {}
}
},
[2] = {object2 = {
[1] = {},
[2] = {}
}
}
} -- these don't line up properly
}
}
Or how am I supposed to do it?
Code:
local config = {
[1] = {object = {
[1] = {object2 = {
[1] = {},
[2] = {}
} },
[2] = {object2 = {
[1] = {},
[2] = {}
} }
} },
[2] = {object = {
[1] = {object2 = {
[1] = {},
[2] = {}
} },
[2] = {object2 = {
[1] = {},
[2] = {}
} }
} }
}