Allow zero-length csexp atoms
This commit is contained in:
parent
1e50670f08
commit
ca857cdf1a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user