Allow zero-length csexp atoms

This commit is contained in:
Brandon Dyck 2024-07-18 00:46:06 -06:00
parent 1e50670f08
commit ca857cdf1a

View File

@ -17,7 +17,7 @@ local function _parse(str, init)
end
else
local pos = init
local len_str = string.match(str, "^[1-9]%d*", pos)
local len_str = string.match(str, "^%d+", pos)
if not len_str then
error(string.format("expected '(' or atom at index %d", pos))
end