Adapt to engine change

This commit is contained in:
Marcel Krüger 2020-06-13 02:52:42 +02:00
parent 19d9ccbd76
commit 9f7849e108

View File

@ -7,9 +7,9 @@
local t = token.create(s) local t = token.create(s)
return token.new(t.mode, t.command) return token.new(t.mode, t.command)
end end
local dimen_cmd = token.command_id'assign_dimen' local dimen_cmd = token.command_id'register_dimen'
local count_cmd = token.command_id'assign_int' local count_cmd = token.command_id'register_int'
local toks_cmd = token.command_id'assign_toks' local toks_cmd = token.command_id'register_toks'
local tex_params = {} local tex_params = {}
local texmeta = getmetatable(tex) local texmeta = getmetatable(tex)
local texmetaoldindex = texmeta.__index local texmetaoldindex = texmeta.__index
@ -55,8 +55,6 @@
elseif v.command == toks_cmd then elseif v.command == toks_cmd then
return tex.toks[v.index] return tex.toks[v.index]
end end
else
return texmetaoldindex(t, k)
end end
end, end,
__newindex = function(t, k, v) __newindex = function(t, k, v)
@ -70,7 +68,7 @@
tex.toks[p.index] = v tex.toks[p.index] = v
end end
else else
return texmetaoldnewindex(t, k, v) return rawset(t, k, v)
end end
end, end,
}) })