Corrections, flatting nested branches (lua metaprogram)

This commit is contained in:
2026-07-11 10:24:34 -04:00
parent 1ffad6cf98
commit 2b00956862
8 changed files with 571 additions and 549 deletions
+5 -3
View File
@@ -335,9 +335,9 @@ local function find_atoms(source_text)
local ident, after = duffle.read_ident(source_text, pos)
-- scan: <ident>
if not ident then
pos = pos + 1
elseif ident == ATOM_PREFIX then
if not ident then pos = pos + 1; goto continue end
if ident == ATOM_PREFIX then
-- scan: MipsAtom_(<name>) { <body> }
local atom = try_wrapped_atom(source_text, after)
if atom then
@@ -358,6 +358,8 @@ local function find_atoms(source_text)
else
pos = after
end
::continue::
end
return atoms
end