From 81095dd1bf20eb5f7e126adbdc8047f940504180 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Mon, 20 Jul 2020 11:09:33 +0200 Subject: 2020-07-20 10:42:00 --- tex/context/base/mkiv/mlib-scn.lmt | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'tex/context/base/mkiv/mlib-scn.lmt') 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 -- cgit v1.2.3