Added support for the Lua and Luau languages. (#2519)

* Added Lua support.

* Updated other `.json` files.

* Added support for Luau.
This commit is contained in:
howmanysmall 2022-02-17 03:58:04 -07:00 committed by GitHub
parent 1063df32a0
commit 5bee5e3a04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 121 additions and 1 deletions

View file

@ -284,7 +284,9 @@
"code_ruby",
"code_r",
"code_swift",
"code_bash"
"code_bash",
"code_lua",
"code_luau"
]
},
{

View file

@ -153,6 +153,8 @@
,"code_r"
,"code_swift"
,"code_bash"
,"code_lua"
,"code_luau"
,"hindi"
,"hindi_1k"
,"macedonian"

View file

@ -0,0 +1,58 @@
{
"name": "code_lua",
"leftToRight": true,
"noLazyMode": true,
"words": [
"and",
"break",
"do",
"else",
"elseif",
"end",
"false",
"for",
"function",
"if",
"in",
"local",
"nil",
"not",
"or",
"repeat",
"return",
"then",
"true",
"until",
"while",
"assert",
"collectgarbage",
"dofile",
"error",
"gcinfo",
"getfenv",
"getmetatable",
"ipairs",
"load",
"loadfile",
"loadstring",
"newproxy",
"next",
"pairs",
"pcall",
"print",
"rawequal",
"rawget",
"rawlen",
"rawset",
"require",
"select",
"setfenv",
"setmetatable",
"tonumber",
"tostring",
"type",
"unpack",
"xpcall"
]
}

View file

@ -0,0 +1,58 @@
{
"name": "code_luau",
"leftToRight": true,
"noLazyMode": true,
"words": [
"and",
"break",
"do",
"else",
"elseif",
"end",
"false",
"for",
"function",
"if",
"in",
"local",
"nil",
"not",
"or",
"repeat",
"return",
"then",
"true",
"until",
"while",
"export",
"typeof",
"continue",
"assert",
"collectgarbage",
"error",
"gcinfo",
"getfenv",
"getmetatable",
"ipairs",
"loadstring",
"newproxy",
"next",
"pairs",
"pcall",
"print",
"rawequal",
"rawget",
"rawset",
"require",
"select",
"setfenv",
"setmetatable",
"tonumber",
"tostring",
"type",
"unpack",
"xpcall"
]
}