aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/object.nom2
-rw-r--r--lib/os.nom4
-rw-r--r--lib/things.nom2
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/object.nom b/lib/object.nom
index 101499d..2af5412 100644
--- a/lib/object.nom
+++ b/lib/object.nom
@@ -101,7 +101,7 @@ test:
class.__tostring = function(inst)
return inst.name..getmetatable(_Dict{}).__tostring(inst)
end
- \(%class_body as lua statements)
+ \(%class_body as lua)
for stub,metamethod in pairs(globals.METAMETHOD_MAP) do
class[metamethod] = class[stub:as_lua_id()]
end
diff --git a/lib/os.nom b/lib/os.nom
index 64b46c2..fb705dc 100644
--- a/lib/os.nom
+++ b/lib/os.nom
@@ -23,7 +23,7 @@ test:
for file %f in "core": do nothing
(for file %f in %path %body) compiles to "\
..for i,\(%f as lua expr) in Files.walk(\(%path as lua expr)) do
- \(%body as lua statements)
+ \(%body as lua)
\(what (===next %f ===) compiles to)
end
\(what (===stop %f ===) compiles to)"
@@ -32,7 +32,7 @@ test:
..(function()
local ret = List{}
for i,\(%f as lua expr) in Files.walk(\(%path as lua expr)) do
- ret[#ret+1] = \(%expr as lua statements)
+ ret[#ret+1] = \(%expr as lua)
end
return ret
end)()"
diff --git a/lib/things.nom b/lib/things.nom
index f11ca23..4f15e68 100644
--- a/lib/things.nom
+++ b/lib/things.nom
@@ -124,7 +124,7 @@ test:
class.__tostring = function(inst)
return inst.name..dict_tostring(inst)
end
- \(%class_body as lua statements)
+ \(%class_body as lua)
for stub,metamethod in pairs(globals.METAMETHOD_MAP) do
class[metamethod] = class[stub:as_lua_id()]
end