diff --git a/index.html b/index.html
index 6fa34cc..76a6fda 100644
--- a/index.html
+++ b/index.html
@@ -58,7 +58,7 @@
Settings
-
Editor: 1.79 ─ Game: v0.47.1
+
Editor: 1.80 ─ Game: v0.47.1
Cannot access Local Storage. Scripts will not save!
diff --git a/scripts/lexer.lua b/scripts/lexer.lua
index ffb30d1..c2d9e5c 100644
--- a/scripts/lexer.lua
+++ b/scripts/lexer.lua
@@ -118,6 +118,7 @@ end
local function consumeTokensWorker(node)
if #node.tokens == 0 then
+ assert(node.func, tokenError(node, "invalid empty parenthesis"));
return;
elseif #node.tokens == 1 then
table.insert(node.args, resolveID(node.tokens[1]));
@@ -353,7 +354,7 @@ function lexer(line, vars)
func = assert(FUNCTION[func], tokenError(last, "trying to call a non-function: " .. func));
end
- node = newNode(last and last.pos or token.pos, node, func);
+ node = newNode(func and last.pos or token.pos, node, func);
elseif token.type == "next" then
assert(node.func, tokenError(token, "unexpected symbol: " .. token.value));
consumeTokens(node);