diff options
author | Marius <mariausol@gmail.com> | 2013-06-11 00:00:21 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2013-06-11 00:00:21 +0300 |
commit | b10c48bc0fe2e5be7305c0f31e41ea01f8596c30 (patch) | |
tree | 232314581f134e9428305f8a49fc13b33a6ca615 /tex/context/base/m-database.lua | |
parent | c3976d6be794a9eb876a2c0dab5839ea828691bd (diff) | |
download | context-b10c48bc0fe2e5be7305c0f31e41ea01f8596c30.tar.gz |
beta 2013.06.10 22:51
Diffstat (limited to 'tex/context/base/m-database.lua')
-rw-r--r-- | tex/context/base/m-database.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tex/context/base/m-database.lua b/tex/context/base/m-database.lua index 0aaee7e93..31e87ad40 100644 --- a/tex/context/base/m-database.lua +++ b/tex/context/base/m-database.lua @@ -48,6 +48,8 @@ function moduledata.database.csv.process(settings) data = buffers.getlines(settings.database) end if data and #data > 0 then + local catcodes = tonumber(settings.catcodes) or tex.catcodetable + context.pushcatcodes(catcodes) if trace_flush then context.pushlogger(report_database) end @@ -65,7 +67,7 @@ function moduledata.database.csv.process(settings) local quotedata = nil for chr in gmatch(quotechar,".") do local quotechar = lpegP(chr) - local quoteword = l_space^0 * quotechar * lpegC((1 - quotechar)^0) * quotechar * l_space^0 + local quoteword = lpegCs(((l_space^0 * quotechar)/"") * (1 - quotechar)^0 * ((quotechar * l_space^0)/"")) if quotedata then quotedata = quotedata + quoteword else @@ -120,6 +122,7 @@ function moduledata.database.csv.process(settings) context.endgroup() end end + context.popcatcodes() if trace_flush then context.poplogger() end |