Add "goto" to keywords

This commit is contained in:
Lars Mueller 2022-01-04 13:55:29 +01:00
parent a17981879d
commit d7cd844e9b

@ -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]