summaryrefslogtreecommitdiff
path: root/scripts/context/lua/mtx-context.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-06-05 23:00:15 +0300
committerMarius <mariausol@gmail.com>2012-06-05 23:00:15 +0300
commit7eed65970869ede47697d448e88fa4722418b7f3 (patch)
tree923cbee85f394d0613817412b9188cfb9810d030 /scripts/context/lua/mtx-context.lua
parent6bfe227f2a770f059502000d4c7f20d5d8ef4024 (diff)
downloadcontext-7eed65970869ede47697d448e88fa4722418b7f3.tar.gz
beta 2012.06.05 21:45
Diffstat (limited to 'scripts/context/lua/mtx-context.lua')
-rw-r--r--scripts/context/lua/mtx-context.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/scripts/context/lua/mtx-context.lua b/scripts/context/lua/mtx-context.lua
index fdca3c89a..be492f5b9 100644
--- a/scripts/context/lua/mtx-context.lua
+++ b/scripts/context/lua/mtx-context.lua
@@ -10,7 +10,7 @@ if not modules then modules = { } end modules ['mtx-context'] = {
-- todo: pass jobticket/ctxdata table around
local format, gmatch, match, gsub, find = string.format, string.gmatch, string.match, string.gsub, string.find
-local quote = string.quote
+local quote, validstring = string.quote, string.valid
local concat = table.concat
local settings_to_array = utilities.parsers.settings_to_array
local appendtable = table.append
@@ -464,10 +464,6 @@ end
--
-local function validstring(s)
- return type(s) == "string" and s ~= "" and s or nil
-end
-
function scripts.context.run(ctxdata,filename)
--
local a_nofile = getargument("nofile")
@@ -616,7 +612,7 @@ function scripts.context.run(ctxdata,filename)
["synctex"] = a_synctex and 1 or nil,
["no-parse-first-line"] = true,
-- ["no-mktex"] = true,
- -- ["file-line-error"] = true,
+ -- ["file-line-error-style"] = true,
["fmt"] = formatfile,
["lua"] = scriptfile,
["jobname"] = jobname,