Skip to content

Commit a5372bf

Browse files
committed
Improve Lua complexity, quote, and multiline comment checks
1 parent fb09b8d commit a5372bf

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

languages.json

Lines changed: 31 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,6 +4163,10 @@
41404163
{
41414164
"end": "'",
41424165
"start": "'"
4166+
},
4167+
{
4168+
"end": "[[",
4169+
"start": "]]"
41434170
}
41444171
],
41454172
"shebangs": [

processor/constants.go

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

0 commit comments

Comments
 (0)