summaryrefslogtreecommitdiff
path: root/luaotfload-tool.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-11-05 16:05:54 +0100
committerPhilipp Gesang <phg42.2a@gmail.com>2013-11-05 16:05:54 +0100
commitbf255ef48e5b7710008141e4935183d8ca9a42aa (patch)
treec6c3f93ebb9f54b58662a77fa1d8a53f98f5f781 /luaotfload-tool.lua
parent711249d64487c3a0bde0ba510e11dbf46ebfb3cb (diff)
downloadluaotfload-bf255ef48e5b7710008141e4935183d8ca9a42aa.tar.gz
[tool] adapt --list queries with criterion
Diffstat (limited to 'luaotfload-tool.lua')
-rwxr-xr-xluaotfload-tool.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/luaotfload-tool.lua b/luaotfload-tool.lua
index 3d149d0..17d9399 100755
--- a/luaotfload-tool.lua
+++ b/luaotfload-tool.lua
@@ -993,7 +993,12 @@ actions.list = function (job)
local categories, by_category = { }, { }
for i=1, nmappings do
local entry = mappings[i]
- local value = entry[criterion]
+ local tmp = entry
+ local chain = stringsplit (criterion, "->")
+ for i = 1, #chain - 1 do
+ tmp = tmp [chain [i]]
+ end
+ local value = tmp [chain [#chain]]
if value then
--value = tostring(value)
local entries = by_category[value]