Skip to content

Commit 8513b92

Browse files
authored
Merge pull request #407 from Heliodex/master
Improve Lua and add Luau support
2 parents fb09b8d + 1da2749 commit 8513b92

File tree

3 files changed

+104
-5
lines changed

3 files changed

+104
-5
lines changed

LANGUAGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ Lisp (lisp,lsp)
144144
LLVM IR (ll)
145145
LOLCODE (lol,lols)
146146
Lua (lua)
147+
Luau (luau)
147148
Lucius (lucius)
148149
Luna (luna)
149150
m4 (m4)

languages.json

Lines changed: 102 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4112,12 +4112,15 @@
41124112
"for(",
41134113
"if ",
41144114
"if(",
4115-
"switch ",
41164115
"while ",
4116+
"while(",
41174117
"else ",
4118-
"|| ",
4119-
"&& ",
4120-
"!= ",
4118+
"else(",
4119+
"elseif ",
4120+
"elseif(",
4121+
"or ",
4122+
"and ",
4123+
"~= ",
41214124
"== "
41224125
],
41234126
"extensions": [
@@ -4130,6 +4133,26 @@
41304133
[
41314134
"--[[",
41324135
"]]"
4136+
],
4137+
[
4138+
"--[=[",
4139+
"]=]"
4140+
],
4141+
[
4142+
"--[==[",
4143+
"]==]"
4144+
],
4145+
[
4146+
"--[===[",
4147+
"]===]"
4148+
],
4149+
[
4150+
"--[====[",
4151+
"]====]"
4152+
],
4153+
[
4154+
"--[=====[",
4155+
"]=====]"
41334156
]
41344157
],
41354158
"quotes": [
@@ -4140,12 +4163,87 @@
41404163
{
41414164
"end": "'",
41424165
"start": "'"
4166+
},
4167+
{
4168+
"end": "[[",
4169+
"start": "]]"
41434170
}
41444171
],
41454172
"shebangs": [
41464173
"lua"
41474174
]
41484175
},
4176+
"Luau": {
4177+
"complexitychecks": [
4178+
"for ",
4179+
"for(",
4180+
"if ",
4181+
"if(",
4182+
"while ",
4183+
"while(",
4184+
"else ",
4185+
"else(",
4186+
"elseif ",
4187+
"elseif(",
4188+
"or ",
4189+
"and ",
4190+
"~= ",
4191+
"== "
4192+
],
4193+
"extensions": [
4194+
"luau"
4195+
],
4196+
"line_comment": [
4197+
"--"
4198+
],
4199+
"multi_line": [
4200+
[
4201+
"--[[",
4202+
"]]"
4203+
],
4204+
[
4205+
"--[=[",
4206+
"]=]"
4207+
],
4208+
[
4209+
"--[==[",
4210+
"]==]"
4211+
],
4212+
[
4213+
"--[===[",
4214+
"]===]"
4215+
],
4216+
[
4217+
"--[====[",
4218+
"]====]"
4219+
],
4220+
[
4221+
"--[=====[",
4222+
"]=====]"
4223+
]
4224+
],
4225+
"quotes": [
4226+
{
4227+
"end": "\\\"",
4228+
"start": "\\\""
4229+
},
4230+
{
4231+
"end": "'",
4232+
"start": "'"
4233+
},
4234+
{
4235+
"end": "`",
4236+
"start": "`"
4237+
},
4238+
{
4239+
"end": "[[",
4240+
"start": "]]"
4241+
}
4242+
],
4243+
"shebangs": [
4244+
"luau"
4245+
]
4246+
},
41494247
"Lucius": {
41504248
"complexitychecks": [
41514249
"for ",

processor/constants.go

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)