From 6021f044907a0a85cf02f38e95093e8d64395bb5 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 18 Jan 2018 16:44:11 -0800 Subject: Fix for lua parsing of long strings/table literals. --- nomsu.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nomsu.lua') diff --git a/nomsu.lua b/nomsu.lua index eb193de..911ac29 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -1120,6 +1120,8 @@ do local key_str = key_lua.expr:match([=[["']([a-zA-Z_][a-zA-Z0-9_]*)['"]]=]) if key_str then insert(items, tostring(key_str) .. "=" .. tostring(value_lua.expr)) + elseif key_lua.expr:sub(1, 1) == "[" then + insert(items, "[ " .. tostring(key_lua.expr) .. "]=" .. tostring(value_lua.expr)) else insert(items, "[" .. tostring(key_lua.expr) .. "]=" .. tostring(value_lua.expr)) end -- cgit v1.2.3