diff options
Diffstat (limited to 'tex/context/base/toks-ini.lua')
-rw-r--r-- | tex/context/base/toks-ini.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tex/context/base/toks-ini.lua b/tex/context/base/toks-ini.lua index 0cd25a36c..f8b945890 100644 --- a/tex/context/base/toks-ini.lua +++ b/tex/context/base/toks-ini.lua @@ -68,7 +68,13 @@ if newtoken then local set_macro = newtoken.set_macro - set_macro = function(k,v) context.setvalue(k,v or '') end + set_macro = function(k,v,g) + if g == "global" then + context.setgvalue(k,v or '') + else + context.setvalue(k,v or '') + end + end local bits = { escape = 2^ 0, |