Smaller fixes

This commit is contained in:
Marcel Fabian Krüger 2021-11-08 15:15:54 +01:00
parent 492e0864b0
commit ae36af4134
3 changed files with 11 additions and 5 deletions

View file

@ -10,11 +10,12 @@ local primitive_meaning = {
lmlt.primitive_tokens.relax,
lmlt.primitive_tokens.meaning,
}
local call_cmd = token.command_id'call'
lmlt.luacmd("meaning", function()
local peeked = token.peeknext()
token.put_next(primitive_meaning)
token.skipnextexpanded()
if peeked.parameters == 0 then
if peeked.parameters == 0 or (peeked.command == call_cmd and not peeked.parameters) then
local stash = ''
if peeked.protected then
if token.scankeywordcs'protected' then