summaryrefslogtreecommitdiff
path: root/otfl-font-ltx.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-10-17 10:33:24 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-10-17 10:34:48 +0200
commit2b0964ac028a724842ad37514d30c8bccbf9c354 (patch)
tree628d81cf788870cc5b53625274bc2d73d1673ce8 /otfl-font-ltx.lua
parentdd9421f8766b46a1080a09de6153e7615bac1f02 (diff)
downloadluaotfload-2b0964ac028a724842ad37514d30c8bccbf9c354.tar.gz
Accept comma-separated key values
This mainly fixes passing a comma-separated list to `featurefile`.
Diffstat (limited to 'otfl-font-ltx.lua')
-rw-r--r--otfl-font-ltx.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/otfl-font-ltx.lua b/otfl-font-ltx.lua
index e52360c..655a22e 100644
--- a/otfl-font-ltx.lua
+++ b/otfl-font-ltx.lua
@@ -126,7 +126,7 @@ local filespec = (R("az", "AZ") * P(":"))^-1 * (1-S(":("))^1
local stylespec = spaces * P("/") * (((1-P(":"))^0)/isstyle) * spaces
local filename = (P("file:")/isfile * (filespec/thename)) + (P("[") * P(true)/isname * (((1-P("]"))^0)/thename) * P("]"))
local fontname = (P("name:")/isname * (namespec/thename)) + P(true)/issome * (namespec/thename)
-local sometext = (R("az","AZ","09") + S("+-."))^1
+local sometext = (R("az","AZ","09") + S("+-.,"))^1
local truevalue = P("+") * spaces * (sometext/istrue)
local falsevalue = P("-") * spaces * (sometext/isfalse)
local keyvalue = P("+") + (C(sometext) * spaces * P("=") * spaces * C(sometext))/iskey