diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-09-10 21:16:35 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-09-10 21:16:35 +0200 |
commit | 58c7c9288160407c874930aac789ef6ef3faa6b5 (patch) | |
tree | 9cc1d4be11cd66b4e4f77209bac07d41c8d949ee /tex/context/base/mkiv/mlib-scn.lua | |
parent | 438b065a2337ee587442f25ddc587c4762f4d0b0 (diff) | |
download | context-58c7c9288160407c874930aac789ef6ef3faa6b5.tar.gz |
2019-09-10 20:11:00
Diffstat (limited to 'tex/context/base/mkiv/mlib-scn.lua')
-rw-r--r-- | tex/context/base/mkiv/mlib-scn.lua | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/tex/context/base/mkiv/mlib-scn.lua b/tex/context/base/mkiv/mlib-scn.lua index ec0f7397b..a85c861bd 100644 --- a/tex/context/base/mkiv/mlib-scn.lua +++ b/tex/context/base/mkiv/mlib-scn.lua @@ -625,30 +625,30 @@ local function getparametertext() end end -local function getparameteroption() - local list, n = collectnames() - local last = list[n] - if type(last) == "string" then - n = n - 1 - else - return false - end - local v = namespaces - for i=1,n do - v = v[list[i]] - if not v then - break - end - end - if type(v) == "string" and v ~= "" then - for s in gmatch(v,"[^ ,]+") do - if s == last then - return true - end - end - end - return false -end +-- local function getparameteroption() +-- local list, n = collectnames() +-- local last = list[n] +-- if type(last) == "string" then +-- n = n - 1 +-- else +-- return false +-- end +-- local v = namespaces +-- for i=1,n do +-- v = v[list[i]] +-- if not v then +-- break +-- end +-- end +-- if type(v) == "string" and v ~= "" then +-- for s in gmatch(v,"[^ ,]+") do +-- if s == last then +-- return true +-- end +-- end +-- end +-- return false +-- end metapost.registerscript("getparameters", getparameters) metapost.registerscript("applyparameters", applyparameters) @@ -661,7 +661,7 @@ metapost.registerscript("getparametercount", getparametercount) metapost.registerscript("getmaxparametercount",getmaxparametercount) metapost.registerscript("getparameterpath", getparameterpath) metapost.registerscript("getparametertext", getparametertext) -metapost.registerscript("getparameteroption", getparameteroption) +--------.registerscript("getparameteroption", getparameteroption) metapost.registerscript("pushparameters", pushparameters) metapost.registerscript("popparameters", popparameters) |