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

Remove text litterals as events buffers may contain code blocks (choices events) and we don't want this to end up in the save file

This commit is contained in:
Étienne Fildadut 2021-12-06 16:15:35 +01:00
parent 9bd9759115
commit bc5e68ffcb
6 changed files with 11 additions and 54 deletions

View file

@ -92,12 +92,6 @@ local function expression(s, state, namespace, current_priority, operating_on)
local l, e = parse_text(d, state, namespace, "string") -- parse interpolated expressions
if not l then return l, e end
return expression(r, state, namespace, current_priority, l)
-- text
elseif s:match("^t%\"") then
local d, r = get_text_in_litteral(s, 3)
local l, e = parse_text(d, state, namespace, "text", nil, true) -- parse interpolated expressions and subtext
if not l then return l, e end
return expression(r, state, namespace, current_priority, l)
-- paranthesis
elseif s:match("^%b()") then
local content, r = s:match("^(%b())(.*)$")