diff options
author | Marius <mariausol@gmail.com> | 2011-03-25 19:20:25 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-03-25 19:20:25 +0200 |
commit | 1455dd60b68c9140db1b9977c9e5ce372b772ec8 (patch) | |
tree | d2b7060a4d9891966a056dcf143ef20d43390561 /tex/context/base/buff-ver.lua | |
parent | 2a9554684f61df8db63dec6d4e874f49b25a212b (diff) | |
download | context-1455dd60b68c9140db1b9977c9e5ce372b772ec8.tar.gz |
beta 2011.03.25 18:03
Diffstat (limited to 'tex/context/base/buff-ver.lua')
-rw-r--r-- | tex/context/base/buff-ver.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tex/context/base/buff-ver.lua b/tex/context/base/buff-ver.lua index 392c323be..a1f98ab0a 100644 --- a/tex/context/base/buff-ver.lua +++ b/tex/context/base/buff-ver.lua @@ -194,17 +194,17 @@ end local fallback = context.verbatim -local function makepattern(visualizer,kind,pattern) +local function makepattern(visualizer,replacement,pattern) if not pattern then - report_visualizers("error in visualizer: %s",kind) + report_visualizers("error in visualizer: %s",replacement) return patterns.alwaystrue else - if type(visualizer) == "table" and type(kind) == "string" then - kind = visualizer[kind] or fallback + if type(visualizer) == "table" and type(replacement) == "string" then + replacement = visualizer[replacement] or fallback else - kind = fallback + replacement = fallback end - return (C(pattern) * CargOne) / kind + return (C(pattern) * CargOne) / replacement end end |