diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-03-05 16:41:28 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-03-05 16:41:28 +0100 |
commit | b958bba841f9907582f3c5fa4b6162353636fc8f (patch) | |
tree | 4a96267049c80b9ff80645f31962e391b70b4473 /tex/context/base/mkiv/buff-ini.lua | |
parent | 4916c5e036f646daaa3ec913c4c69ce4fb3da1c5 (diff) | |
download | context-b958bba841f9907582f3c5fa4b6162353636fc8f.tar.gz |
2019-03-05 15:48:00
Diffstat (limited to 'tex/context/base/mkiv/buff-ini.lua')
-rw-r--r-- | tex/context/base/mkiv/buff-ini.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/buff-ini.lua b/tex/context/base/mkiv/buff-ini.lua index bd3cf9d5a..ecb5d9dd0 100644 --- a/tex/context/base/mkiv/buff-ini.lua +++ b/tex/context/base/mkiv/buff-ini.lua @@ -351,11 +351,17 @@ buffers.undent = undent -- commands.doifelse(more) -- end +local split = table.setmetatableindex(function(t,k) + local v = totable(k) + t[k] = v + return v +end) + function tokens.pickup(start,stop) - local stoplist = totable(stop) + local stoplist = split[stop] -- totable(stop) local stoplength = #stoplist local stoplast = stoplist[stoplength] - local startlist = totable(start) + local startlist = split[start] -- totable(start) local startlength = #startlist local startlast = startlist[startlength] local list = { } |