From af62e3e8bf2794048e7c20fc16fabd8c4726961e Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 12 Jul 2018 21:24:08 -0700 Subject: All tests passing. --- nomsu_compiler.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nomsu_compiler.lua') diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua index c3e78ef..0074d29 100644 --- a/nomsu_compiler.lua +++ b/nomsu_compiler.lua @@ -367,7 +367,7 @@ do if tree == nil then return nil end - if tree.type == "FileChunks" then + if tree.type == "File" then local ret = nil local all_lua = { } for _index_0 = 1, #tree do @@ -708,8 +708,8 @@ do return LuaCode.Value(tree.source, tostring(tree[1])) elseif "Var" == _exp_0 then return LuaCode.Value(tree.source, string.as_lua_id(tree[1])) - elseif "FileChunks" == _exp_0 then - return error("Cannot convert FileChunks to a single block of lua, since each chunk's " .. "compilation depends on the earlier chunks") + elseif "File" == _exp_0 then + return error("Cannot convert File to a single block of lua, since each chunk's " .. "compilation depends on the earlier chunks") else return error("Unknown type: " .. tostring(tree.type)) end @@ -757,7 +757,7 @@ do end local inline, can_use_colon = options.inline, options.can_use_colon local _exp_0 = tree.type - if "FileChunks" == _exp_0 then + if "File" == _exp_0 then if inline then return nil end -- cgit v1.2.3