diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-03-27 22:15:05 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2015-03-27 22:15:05 +0100 |
commit | 81e329bb8da4ef551f9a242883f6f39111eb2338 (patch) | |
tree | eb789f5596eaa24439196a6078127e884daaf67c /tex/context/base/toks-ini.lua | |
parent | 72bd1e9c8cc7fb62285350f7a550d3866e5f2a2b (diff) | |
download | context-81e329bb8da4ef551f9a242883f6f39111eb2338.tar.gz |
2015-03-27 21:41:00
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, |