mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-29 02:33:43 +01:00
Add "goto" to keywords
This commit is contained in:
parent
a17981879d
commit
d7cd844e9b
1
text.lua
1
text.lua
@ -177,6 +177,7 @@ function handle_ifdefs(code, vars)
|
|||||||
end
|
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"}
|
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)
|
function is_keyword(text)
|
||||||
return keywords[text]
|
return keywords[text]
|
||||||
|
Loading…
Reference in New Issue
Block a user