summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-05-16 14:00:59 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-05-16 14:00:59 +0100
commit56e9f4450d94202824e9419fdaa756fe93c7d65d (patch)
treeee4e451551eba7181d2d7a2fcfe03b93fb45541e
parent9036cfa178860405e71a92433a929cbea742e640 (diff)
downloadlace-56e9f4450d94202824e9419fdaa756fe93c7d65d.tar.gz
_lace not .lace
-rw-r--r--lib/lace/compiler.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/lace/compiler.lua b/lib/lace/compiler.lua
index d1178f0..754e680 100644
--- a/lib/lace/compiler.lua
+++ b/lib/lace/compiler.lua
@@ -23,14 +23,14 @@ local function _fake_command(ctx)
end
local function _loader(ctx)
- -- We know the context is a table with a .lace table, so retrieve
+ -- We know the context is a table with a _lace table, so retrieve
-- the loader function. If it's absent, return a loader which
-- fails due to no loader being present.
return ctx._lace.loader or _fake_loader
end
local function _command(ctx, name)
- -- While we know .lace is present, there's no guarantee they added
+ -- While we know _lace is present, there's no guarantee they added
-- any commands
local cmdtab = ctx._lace.commands or {}
local cfn = cmdtab[name]
@@ -71,7 +71,7 @@ end
local function internal_compile_ruleset(compcontext, sourcename, content, suppress_default)
assert(type(compcontext) == "table", "Compilation context must be a table")
- assert(type(compcontext._lace) == "table", "Compilation context must contain a .lace table")
+ assert(type(compcontext._lace) == "table", "Compilation context must contain a _lace table")
assert(type(sourcename) == "string", "Source name must be a string")
assert(content == nil or type(content) == "string", "Content must be nil or a string")
if not content then
@@ -159,4 +159,4 @@ return {
internal_compile = internal_compile_ruleset,
compile = compile_ruleset,
error = _error,
-} \ No newline at end of file
+}