From af12b3a0ea94f2beeecda07a70e4c752456d5988 Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Thu, 7 Dec 2023 19:47:38 +0000 Subject: [PATCH] Fix goto/:: tokens erroring in error reporting --- .../lua/rom/modules/main/cc/internal/syntax/errors.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/errors.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/errors.lua index f3397237b..88b8f8c98 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/errors.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/modules/main/cc/internal/syntax/errors.lua @@ -58,6 +58,7 @@ local token_names = setmetatable({ [tokens.DO] = code("do"), [tokens.DOT] = code("."), [tokens.DOTS] = code("..."), + [tokens.DOUBLE_COLON] = code("::"), [tokens.ELSE] = code("else"), [tokens.ELSEIF] = code("elseif"), [tokens.END] = code("end"), @@ -67,6 +68,7 @@ local token_names = setmetatable({ [tokens.FOR] = code("for"), [tokens.FUNCTION] = code("function"), [tokens.GE] = code(">="), + [tokens.GOTO] = code("goto"), [tokens.GT] = code(">"), [tokens.IF] = code("if"), [tokens.IN] = code("in"),