1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-29 01:29:31 +00:00

[language] allow multiline expression between (), [] and {}

This commit is contained in:
Étienne Fildadut 2024-01-15 20:02:40 +01:00
parent 1ea06c63eb
commit 78f3c6448e
44 changed files with 291 additions and 147 deletions

View file

@ -13,9 +13,11 @@ local common = {
trim = function(str)
return str:match("^%s*(.-)%s*$")
end,
-- format ansi colored string
fmt = function(str, ...)
return ansicolors(str):format(...)
end,
-- generate a uuidv4
uuid = function()
return ("xxxxxxxx-xxxx-4xxx-Nxxx-xxxxxxxxxxxx") -- version 4
:gsub("N", math.random(0x8, 0xb)) -- variant 1