Adapt to new luametatex version

This commit is contained in:
Marcel Fabian Krüger 2021-11-06 11:38:39 +01:00
parent 870ab69578
commit d61bb927a3
10 changed files with 121 additions and 28 deletions

View file

@ -10,9 +10,9 @@ local primitive_meaning = {
token.primitive_tokens.meaning,
}
token.luacmd("meaning", function()
local peeked = token.peek_next()
local peeked = token.peeknext()
token.put_next(primitive_meaning)
token.skip_next_expanded()
token.skipnextexpanded()
if peeked.parameters == 0 then
tex.sprint'->'
end