summaryrefslogtreecommitdiff
path: root/luaotfload-database.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-07-28 05:18:05 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-07-28 05:18:05 -0700
commitfc30e4ca60ec1ede81425056eae2143497a7833f (patch)
tree7689a8c24ddc073466ad2e2d8430cbf0e5e7fda7 /luaotfload-database.lua
parent515a4cf2df2d070af12bf6e4d332cd906d4dd031 (diff)
parent23686faaa0861213d61ec22400bb603684324e5e (diff)
downloadluaotfload-fc30e4ca60ec1ede81425056eae2143497a7833f.tar.gz
Merge pull request #115 from phi-gamma/master
update docs; excise diagnostics from the runner script
Diffstat (limited to 'luaotfload-database.lua')
-rw-r--r--luaotfload-database.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/luaotfload-database.lua b/luaotfload-database.lua
index a49e575..a0a532e 100644
--- a/luaotfload-database.lua
+++ b/luaotfload-database.lua
@@ -117,9 +117,17 @@ end
local report = logs.names_report
+names.patterns = { }
+local patterns = names.patterns
+
local trailingslashes = P"/"^1 * P(-1)
local stripslashes = C((1 - trailingslashes)^0)
-names.patterns = { stripslashes = stripslashes }
+patterns.stripslashes = stripslashes
+
+local comma = P","
+local noncomma = 1-comma
+local splitcomma = Ct((C(noncomma^1) + comma)^1)
+patterns.splitcomma = splitcomma
--[[doc--
We use the functions in the cache.* namespace that come with the