Commit Graph

4 Commits

Author SHA1 Message Date
Kim Alvefur
c8919f20da Quote Lua keywords in table keys
Keywords are not valid as unquoted keys, thus must be quoted
2023-08-05 17:08:38 +02:00
Kim Alvefur
21fda2eb3d Print simple keys unquoted in Lua output
String keys that satisfy the requirements for variable names can be used
as keys without quotes in tables.
2023-08-05 17:08:38 +02:00
Kim Alvefur
21c64fa945 Escape larger set of characters in Lua output
Started with a minimum of replacements, this should be more complete,
tho not all substitutions are strictly required in Lua.
2023-08-05 17:08:38 +02:00
Kim Alvefur
07b53fca7d Implement basic Lua output support
Ref #1700

Basic but working serialization to Lua tables.
2023-08-05 17:08:38 +02:00