summaryrefslogtreecommitdiff
path: root/tex/context/base/util-seq.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/util-seq.lua')
-rw-r--r--tex/context/base/util-seq.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/tex/context/base/util-seq.lua b/tex/context/base/util-seq.lua
index 14c425dfc..028d0cf8d 100644
--- a/tex/context/base/util-seq.lua
+++ b/tex/context/base/util-seq.lua
@@ -151,20 +151,20 @@ return function(head%s)
return head, done
end]]
-function sequencers.nodeprocessor(t,n)
+function sequencers.nodeprocessor(t,nofarguments)
local list, order, kind, gskip, askip = t.list, t.order, t.kind, t.gskip, t.askip
local vars, calls, args, n = { }, { }, nil, 0
- if n == 0 then
+ if nofarguments == 0 then
args = ""
- elseif n == 1 then
+ elseif nofarguments == 1 then
args = ",one"
- elseif n == 2 then
+ elseif nofarguments == 2 then
args = ",one,two"
- elseif n == 3 then
+ elseif nofarguments == 3 then
args = ",one,two,three"
- elseif n == 4 then
+ elseif nofarguments == 4 then
args = ",one,two,three,four"
- elseif n == 5 then
+ elseif nofarguments == 5 then
args = ",one,two,three,four,five"
else
args = ",..."
@@ -189,6 +189,6 @@ function sequencers.nodeprocessor(t,n)
end
end
local processor = format(template,concat(vars,"\n"),args,concat(calls,"\n"))
---~ print(processor)
+ -- print(processor)
return processor
end