summaryrefslogtreecommitdiff
path: root/otfl-node-ini.lua
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2009-06-10 20:21:00 +0300
committerElie Roux <elie.roux@telecom-bretagne.eu>2009-06-10 20:21:00 +0300
commit1ef10e57241a65e8ce2aeefdd83874e8999b7b44 (patch)
tree713769db5cdf9115e2824aa09e8f65cd795667f7 /otfl-node-ini.lua
parent5821436af1c522206c3faf90e0813415445ea6c7 (diff)
downloadluaotfload-1ef10e57241a65e8ce2aeefdd83874e8999b7b44.tar.gz
syncing with latest ConTeXt version (more feautures, less bugs), thanks to Khaled Hosny
Diffstat (limited to 'otfl-node-ini.lua')
-rw-r--r--otfl-node-ini.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/otfl-node-ini.lua b/otfl-node-ini.lua
index aeeb689..8185e30 100644
--- a/otfl-node-ini.lua
+++ b/otfl-node-ini.lua
@@ -49,13 +49,15 @@ are only used when no attribute is set at the \TEX\ end which normally
happens in <l n='context'/>.</p>
--ldx]]--
-local last = 127
+storage.shared.attributes_last_private = storage.shared.attributes_last_private or 127
function attributes.private(name) -- at the lua end (hidden from user)
local number = numbers[name]
if not number then
+ local last = storage.shared.attributes_last_private or 127
if last < 255 then
last = last + 1
+ storage.shared.attributes_last_private = last
end
number = last
numbers[name], names[number], list[number] = number, name, { }