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

Fix a lot of issues when resuming from a paragraph in a choice or expression block

This commit is contained in:
Étienne Fildadut 2021-04-10 14:33:32 +02:00
parent f93d6fab6b
commit dde89502da
67 changed files with 762 additions and 173 deletions

38
test/tests/flush.lua Normal file
View file

@ -0,0 +1,38 @@
local _={}
_[17]={}
_[16]={}
_[15]={}
_[14]={}
_[13]={data="d",tags=_[17]}
_[12]={data="c",tags=_[16]}
_[11]={data="b",tags=_[15]}
_[10]={data="a",tags=_[14]}
_[9]={_[13]}
_[8]={_[12]}
_[7]={_[11]}
_[6]={_[10]}
_[5]={"return"}
_[4]={"choice",_[9]}
_[3]={"text",_[8]}
_[2]={"choice",_[7]}
_[1]={"text",_[6]}
return {_[1],_[2],_[3],_[4],_[5]}
--[[
{ "text", { {
data = "a",
tags = {}
} } }
{ "choice", { {
data = "b",
tags = {}
} } }
{ "text", { {
data = "c",
tags = {}
} } }
{ "choice", { {
data = "d",
tags = {}
} } }
{ "return" }
]]--