summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Carlisle <d.p.carlisle@gmail.com>2015-11-23 18:50:00 +0000
committerPhilipp Gesang <phg@phi-gamma.net>2015-11-26 08:09:14 +0100
commitf4204c1ea5fcc0368392c119530687681ab733c9 (patch)
treea5a51e53508e47ced2049ab6f81300b4af9e7d47
parentfaa2f91a150bf3b0b9fc1cc95c36b23d91cc3a93 (diff)
downloadluaotfload-f4204c1ea5fcc0368392c119530687681ab733c9.tar.gz
define priority_in_callback (from luatexbase)
-rw-r--r--src/luaotfload-colors.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/luaotfload-colors.lua b/src/luaotfload-colors.lua
index 98549c8..576a432 100644
--- a/src/luaotfload-colors.lua
+++ b/src/luaotfload-colors.lua
@@ -315,7 +315,16 @@ end
local color_callback_activated = 0
local add_to_callback = luatexbase.add_to_callback
-local priority_in_callback = luatexbase.priority_in_callback
+local function priority_in_callback (name,description)
+ for i,v in ipairs(luatexbase.callback_descriptions(name))
+ do
+ if v == description then
+ return i
+ end
+ end
+ return false
+end
+
--- unit -> unit
add_color_callback = function ( )