1
0
Fork 0
mirror of https://github.com/Reuh/anselme.git synced 2025-10-27 16:49:31 +00:00
This commit is contained in:
Étienne Fildadut 2021-04-08 17:25:58 +02:00
parent 32ae99e33b
commit 9d4e732034

View file

@ -274,7 +274,7 @@ local function parse_line(line, state, namespace)
end end
state.variables[fqm] = v state.variables[fqm] = v
elseif state.variables[fqm].type ~= exp.type then elseif state.variables[fqm].type ~= exp.type then
return nil, ("trying to define variable %s of type %s but a it is already defined with type %s; at %s"):format(fqm, exp.type, state.variables[fqm].type, line.source) return nil, ("trying to define variable %s of type %s but it is already defined with type %s; at %s"):format(fqm, exp.type, state.variables[fqm].type, line.source)
end end
-- tag -- tag
elseif l:match("^%#") then elseif l:match("^%#") then