1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 16:49: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

View file

@ -90,7 +90,7 @@ local function expression(s, state, namespace, currentPriority, operatingOn)
-- identifier
elseif s:match("^"..identifier_pattern) then
local name, r = s:match("^("..identifier_pattern..")(.-)$")
name = format_identifier(name, state)
name = format_identifier(name)
-- variables
local var, vfqm = find(state.aliases, state.variables, namespace, name)
if var then
@ -161,7 +161,7 @@ local function expression(s, state, namespace, currentPriority, operatingOn)
-- suffix call
if op == "." and sright:match("^"..identifier_pattern) then
local name, r = sright:match("^("..identifier_pattern..")(.-)$")
name = format_identifier(name, state)
name = format_identifier(name)
local funcs, ffqm = find(state.aliases, state.functions, namespace, name)
if funcs then
local args, explicit_call