diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/java-ini.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/java-ini.lua | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/context/base/java-ini.lua b/Master/texmf-dist/tex/context/base/java-ini.lua index 161a1657e90..f64a8a18fb0 100644 --- a/Master/texmf-dist/tex/context/base/java-ini.lua +++ b/Master/texmf-dist/tex/context/base/java-ini.lua @@ -1,12 +1,13 @@ if not modules then modules = { } end modules ['java-ini'] = { version = 1.001, - comment = "companion to java-ini.tex", + comment = "companion to java-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local format = string.format +local lpegmatch = lpeg.match javascripts = javascripts or { } javascripts.codes = javascripts.codes or { } @@ -42,18 +43,18 @@ local parsepreamble = name * ((used * name) + lpeg.Cc("")) * spaces * script local parsefunctions = (fname + any)^0 function javascripts.storecode(str) - local name, uses, script = parsecode:match(str) + local name, uses, script = lpegmatch(parsecode,str) if name and name ~= "" then javascripts.codes[name] = { uses, script } end end function javascripts.storepreamble(str) -- now later - local name, used, script = parsepreamble:match(str) + local name, used, script = lpegmatch(parsepreamble,str) if name and name ~= "" then preambles[#preambles+1] = { name, used, script } preambled[name] = #preambles - parsefunctions:match(script) + lpegmatch(parsefunctions,script) end end @@ -61,7 +62,7 @@ function javascripts.setpreamble(name,script) -- now later if name and name ~= "" then preambles[#preambles+1] = { name, "now", script } preambled[name] = #preambles - parsefunctions:match(script) + lpegmatch(parsefunctions,script) end end @@ -73,7 +74,7 @@ function javascripts.addtopreamble(name,script) -- now later else preambles[#preambles+1] = { name, "now", script } preambled[name] = #preambles - parsefunctions:match(script) + lpegmatch(parsefunctions,script) end end end |