summaryrefslogtreecommitdiff
path: root/tex/context/base/util-mrg.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-06-12 09:56:00 +0200
committerHans Hagen <pragma@wxs.nl>2012-06-12 09:56:00 +0200
commitb73cc5a5fa57fdadd4fc4644c8a19873ecf0cfb5 (patch)
tree64ddea653fb3080d4d9d90eaa5f25fb853fcff1d /tex/context/base/util-mrg.lua
parent9155c481d3d3584be5206eac986a5c9bde6ce505 (diff)
downloadcontext-b73cc5a5fa57fdadd4fc4644c8a19873ecf0cfb5.tar.gz
beta 2012.06.12 09:56
Diffstat (limited to 'tex/context/base/util-mrg.lua')
-rw-r--r--tex/context/base/util-mrg.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/tex/context/base/util-mrg.lua b/tex/context/base/util-mrg.lua
index acf04fead..c924d30af 100644
--- a/tex/context/base/util-mrg.lua
+++ b/tex/context/base/util-mrg.lua
@@ -63,9 +63,11 @@ end
local function self_save(name, data)
if data ~= "" then
if merger.strip_comment then
- -- saves some 20K
local n = #data
+ -- saves some 20K .. scite comments
data = gsub(data,"%-%-~[^\n\r]*[\r\n]","")
+ -- saves some 20K .. ldx comments
+ data = gsub(data,"%-%-%[%[ldx%-%-.-%-%-ldx%]%]%-%-","")
utilities.report("merge: %s bytes of comment stripped, %s bytes of code left",n-#data,#data)
end
io.savedata(name,data)