summaryrefslogtreecommitdiff
path: root/tex/context/base/meta-ini.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2011-06-11 16:45:00 +0200
committerHans Hagen <pragma@wxs.nl>2011-06-11 16:45:00 +0200
commit755ec706c4e4e4eb6315e2f2f9f2cfc0eed439aa (patch)
treebf11f5401e488605ba1bfdf533f5baca711bf06e /tex/context/base/meta-ini.lua
parent513177ada9eb9b29f01e3ff34de1338ddb66f617 (diff)
downloadcontext-755ec706c4e4e4eb6315e2f2f9f2cfc0eed439aa.tar.gz
beta 2011.06.11 16:45
Diffstat (limited to 'tex/context/base/meta-ini.lua')
-rw-r--r--tex/context/base/meta-ini.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tex/context/base/meta-ini.lua b/tex/context/base/meta-ini.lua
index 872c628aa..6e7053667 100644
--- a/tex/context/base/meta-ini.lua
+++ b/tex/context/base/meta-ini.lua
@@ -6,7 +6,8 @@ if not modules then modules = { } end modules ['meta-ini'] = {
license = "see context related readme files"
}
-local format = string.format
+local tonumber = tonumber
+local format, gmatch, match = string.format, string.gmatch, string.match
metapost = metapost or { }
@@ -35,7 +36,6 @@ local colorhash = attributes.list[attributes.private('color')]
local validdimen = lpeg.patterns.validdimen * lpeg.P(-1)
local lpegmatch = lpeg.match
-local gmatch = string.gmatch
local textype = tex.type
local MPcolor = context.MPcolor
@@ -43,7 +43,7 @@ function commands.prepareMPvariable(v) -- slow but ok
if v == "" then
MPcolor("black")
else
- local typ, var = string.match(v,"(.):(.*)")
+ local typ, var = match(v,"(.):(.*)")
if not typ then
-- parse
if colorhash[v] then