diff options
author | Hans Hagen <pragma@wxs.nl> | 2022-12-21 18:00:37 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2022-12-21 18:00:37 +0100 |
commit | 36355f3d0c23357fccf2c76b3e9605a41cae519d (patch) | |
tree | 7b2bfa701a21ed8b075deba24112583461706770 /tex/context/base/mkxl/file-job.lmt | |
parent | 8f472c629a996f1c08281198210354a253d7f56b (diff) | |
download | context-36355f3d0c23357fccf2c76b3e9605a41cae519d.tar.gz |
2022-12-21 17:12:00
Diffstat (limited to 'tex/context/base/mkxl/file-job.lmt')
-rw-r--r-- | tex/context/base/mkxl/file-job.lmt | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tex/context/base/mkxl/file-job.lmt b/tex/context/base/mkxl/file-job.lmt index 367ec4562..be2886fba 100644 --- a/tex/context/base/mkxl/file-job.lmt +++ b/tex/context/base/mkxl/file-job.lmt @@ -11,7 +11,7 @@ if not modules then modules = { } end modules ['file-job'] = { local next, rawget, tostring, tonumber = next, rawget, tostring, tonumber local gsub, match, gmatch, ind = string.gsub, string.match, string.gmatch, string.find -local insert, remove, concat = table.insert, table.remove, table.concat +local insert, remove, concat, unique, imerged = table.insert, table.remove, table.concat, table.unique, table.imerged local validstring, formatters = string.valid, string.formatters local sortedhash = table.sortedhash local setmetatableindex, setmetatablenewindex = table.setmetatableindex, table.setmetatablenewindex @@ -1350,3 +1350,17 @@ implement { end, } +implement { + name = "adddefaultsuffix", + public = true, + protected = true, + actions = function(list) + resolvers.defaultsuffixes = unique( + imerged( + resolvers.defaultsuffixes, + list + ) + ) + end, + arguments = "array", +} |