Skip to content

Commit

Permalink
Improve Lua complexity, quote, and multiline comment checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Heliodex committed Sep 12, 2023
1 parent fb09b8d commit a5372bf
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 5 deletions.
35 changes: 31 additions & 4 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -4112,12 +4112,15 @@
"for(",
"if ",
"if(",
"switch ",
"while ",
"while(",
"else ",
"|| ",
"&& ",
"!= ",
"else(",
"elseif ",
"elseif(",
"or ",
"and ",
"~= ",
"== "
],
"extensions": [
Expand All @@ -4130,6 +4133,26 @@
[
"--[[",
"]]"
],
[
"--[=[",
"]=]"
],
[
"--[==[",
"]==]"
],
[
"--[===[",
"]===]"
],
[
"--[====[",
"]====]"
],
[
"--[=====[",
"]=====]"
]
],
"quotes": [
Expand All @@ -4140,6 +4163,10 @@
{
"end": "'",
"start": "'"
},
{
"end": "[[",
"start": "]]"
}
],
"shebangs": [
Expand Down
2 changes: 1 addition & 1 deletion processor/constants.go

Large diffs are not rendered by default.

0 comments on commit a5372bf

Please sign in to comment.