summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/mlib-scn.lmt
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/mlib-scn.lmt')
-rw-r--r--tex/context/base/mkiv/mlib-scn.lmt21
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