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:
parent
9bd9759115
commit
bc5e68ffcb
6 changed files with 11 additions and 54 deletions
|
|
@ -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())(.*)$")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue