diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-07-20 11:09:33 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-07-20 11:09:33 +0200 |
commit | 81095dd1bf20eb5f7e126adbdc8047f940504180 (patch) | |
tree | c0cdf7b074e8a2d00c56fde09519e89f155bd425 /tex/context/base/mkiv/mlib-scn.lmt | |
parent | f1129626606384a7a55a21a83531f51f8b5dee25 (diff) | |
download | context-81095dd1bf20eb5f7e126adbdc8047f940504180.tar.gz |
2020-07-20 10:42:00
Diffstat (limited to 'tex/context/base/mkiv/mlib-scn.lmt')
-rw-r--r-- | tex/context/base/mkiv/mlib-scn.lmt | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/tex/context/base/mkiv/mlib-scn.lmt b/tex/context/base/mkiv/mlib-scn.lmt index 5655c507d..4c6c15a89 100644 --- a/tex/context/base/mkiv/mlib-scn.lmt +++ b/tex/context/base/mkiv/mlib-scn.lmt @@ -71,6 +71,7 @@ local injectpair = injectors.pair local injecttriplet = injectors.color local injectquadruple = injectors.cmykcolor local injecttransform = injectors.transform +local injectpath = injectors.path local report = logs.reporter("metapost") @@ -96,26 +97,6 @@ local tokenscanners = nil local scanset = nil local scanparameters = nil -local injectpath = mp.path - -do -- todo: this will become an overload - - local flush = mp.path - local inject = injectors.path -- work in progress - - injectpath = function(p,connector,close) - if #p > 1 then - if connector == true or connector == ".." then - return inject(p,false,close or p.close) - elseif connector == "--" then - return inject(p,true,close or p.close) - end - end - return flush(p,connector,close) - end - -end - scanset = function() -- can be optimized, we now read twice scantoken() if scantoken(true) == rightbrace_code then |