diff options
| author | Jonas Smedegaard <dr@jones.dk> | 2025-06-22 18:51:59 +0200 |
|---|---|---|
| committer | Jonas Smedegaard <dr@jones.dk> | 2025-06-22 18:51:59 +0200 |
| commit | 52f1c6962bb32d621bba94c69ac3f8610caa7f76 (patch) | |
| tree | ddd6ba376be75ff313f046c329f2c9c6b8919ef5 | |
| parent | 7adf2d8e495f7681826e442b9d4deaeff49442b1 (diff) | |
fix append elements/chars also for enclosed stack
| -rw-r--r-- | sem-md/sem-md.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sem-md/sem-md.lua b/sem-md/sem-md.lua index 6f81209..badf8a9 100644 --- a/sem-md/sem-md.lua +++ b/sem-md/sem-md.lua @@ -541,7 +541,7 @@ local function Statements (block) iffy.qualify_unenclosed() else - iffy.append_elems_unenclosed(el) + iffy.append_elems_any(el) end -- specific elements represent content enclosure @@ -565,7 +565,7 @@ local function Statements (block) if iffy.state_is(NONE) then local _, nextpos, s = str:find("^([^%[{\\]*)") pos = nextpos and nextpos + 1 or pos + 1 - iffy.append_chars_unenclosed(s) + iffy.append_chars_any(s) -- entering bracketed or braced enclosure local t = str:sub(pos, pos) @@ -668,7 +668,7 @@ local function Statements (block) -- TODO: parse str_remains for another enclosure if str_remains:len() > 0 then - iffy.append_elems_unenclosed(str_remains) + iffy.append_elems_any(str_remains) iffy.set_state(NONE) end end |
