diff options
| -rw-r--r-- | otfl-font-ltx.lua | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/otfl-font-ltx.lua b/otfl-font-ltx.lua index d1799d7..afc8621 100644 --- a/otfl-font-ltx.lua +++ b/otfl-font-ltx.lua @@ -128,7 +128,9 @@ local function iskey  (k,v) feature_list[k]     = v end  local P, S, R, C = lpeg.P, lpeg.S, lpeg.R, lpeg.C  local spaces     = P(" ")^0 -local namespec   = (1-S("/:("))^0 -- was: (1-S("/: ("))^0 +--local namespec   = (1-S("/:("))^0 -- was: (1-S("/: ("))^0 +--[[phg-- this prevents matching of absolute paths as file names --]]-- +local namespec   = (1-S("/:("))^1  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("]"))  | 
