diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-06-11 16:45:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-06-11 16:45:00 +0200 |
commit | 755ec706c4e4e4eb6315e2f2f9f2cfc0eed439aa (patch) | |
tree | bf11f5401e488605ba1bfdf533f5baca711bf06e /tex/context/base/meta-ini.lua | |
parent | 513177ada9eb9b29f01e3ff34de1338ddb66f617 (diff) | |
download | context-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.lua | 6 |
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 |