luvit/luvit

Does not play nicely with more than 1 dictionaries in a dictionary

AlexHasNoFace opened this issue · 4 comments

I am not sure how or why this issue happens, but if you try to put 2 dictionaries in a dictionary it stops and errors because it expected the parent dictionary to close but instead you open a new one.
Sorry if this is not an issue.

Uhh. Can you clarify what you are doing with some sample code?

dirlua
and the raw code:
local Products = {
Item = {
desc = "Some top quality item this is",
alias = {"thing"},
response = function(message, args)
--Sends response
end
}
EpicThing = { --Line 5
desc = "Some ultra quality item this is",
alias = {"coolerthing"},
response = function(message, args)
--Sends response
end
}
}

print(Products.Item.desc)

You have a syntax error. You need to separate each table element with a comma (or semi-colon). Put one after the Item table.

Oh, I feel really stupid now. Thanks.