From d7cd844e9b43beed0a399464fbc3ad5ea8895e10 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Tue, 4 Jan 2022 13:55:29 +0100 Subject: [PATCH] Add "goto" to keywords --- text.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/text.lua b/text.lua index 448fa3a..a237d7d 100644 --- a/text.lua +++ b/text.lua @@ -177,6 +177,7 @@ function handle_ifdefs(code, vars) end local keywords = modlib.table.set{"and", "break", "do", "else", "elseif", "end", "false", "for", "function", "if", "in", "local", "nil", "not", "or", "repeat", "return", "then", "true", "until", "while"} +keywords["goto"] = true -- Lua 5.2 (LuaJIT) support function is_keyword(text) return keywords[text]