diff options
Diffstat (limited to 'tex/context/base/strc-reg.lua')
-rw-r--r-- | tex/context/base/strc-reg.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tex/context/base/strc-reg.lua b/tex/context/base/strc-reg.lua index ba9c239c0..bce3b17ba 100644 --- a/tex/context/base/strc-reg.lua +++ b/tex/context/base/strc-reg.lua @@ -10,6 +10,7 @@ local next, type = next, type local texwrite, texsprint, texcount = tex.write, tex.sprint, tex.count local format, gmatch, concat = string.format, string.gmatch, table.concat local utfchar = utf.char +local lpegmatch = lpeg.match local trace_registers = false trackers.register("structure.registers", function(v) trace_registers = v end) @@ -215,8 +216,8 @@ local function preprocessentries(rawdata) local entries = rawdata.entries if entries then local e, k = entries[1] or "", entries[2] or "" - local et = (type(e) == "table" and e) or entrysplitter:match(e) - local kt = (type(k) == "table" and k) or entrysplitter:match(k) + local et = (type(e) == "table" and e) or lpegmatch(entrysplitter,e) + local kt = (type(k) == "table" and k) or lpegmatch(entrysplitter,k) entries = { } for k=1,#et do entries[k] = { et[k] or "", kt[k] or "" } |