Mercurial > prosody-hg
comparison util/serialization.lua @ 13926:714695c910c7
util.serialization: Add the Lua 5.5 'global' keyword
Ensures it's still escaped in the unquoted mode.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 01 Jul 2025 23:22:37 +0200 |
| parents | 03f1509a6105 |
| children |
comparison
equal
deleted
inserted
replaced
| 13925:a4c47203a9eb | 13926:714695c910c7 |
|---|---|
| 60 ["if"] = true; ["end"] = true; ["goto"] = true; ["false"] = true; | 60 ["if"] = true; ["end"] = true; ["goto"] = true; ["false"] = true; |
| 61 ["in"] = true; ["for"] = true; ["then"] = true; ["local"] = true; | 61 ["in"] = true; ["for"] = true; ["then"] = true; ["local"] = true; |
| 62 ["or"] = true; ["nil"] = true; ["true"] = true; ["until"] = true; | 62 ["or"] = true; ["nil"] = true; ["true"] = true; ["until"] = true; |
| 63 ["elseif"] = true; ["function"] = true; ["not"] = true; | 63 ["elseif"] = true; ["function"] = true; ["not"] = true; |
| 64 ["repeat"] = true; ["return"] = true; ["while"] = true; | 64 ["repeat"] = true; ["return"] = true; ["while"] = true; |
| 65 ["global"] = true; | |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 local function new(opt) | 68 local function new(opt) |
| 68 if type(opt) ~= "table" then | 69 if type(opt) ~= "table" then |
| 69 opt = { preset = opt }; | 70 opt = { preset = opt }; |
