Skip to content

Commit

Permalink
Merge pull request #407 from Heliodex/master
Browse files Browse the repository at this point in the history
Improve Lua and add Luau support
  • Loading branch information
boyter committed Sep 13, 2023
2 parents fb09b8d + 1da2749 commit 8513b92
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 5 deletions.
1 change: 1 addition & 0 deletions LANGUAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ Lisp (lisp,lsp)
LLVM IR (ll)
LOLCODE (lol,lols)
Lua (lua)
Luau (luau)
Lucius (lucius)
Luna (luna)
m4 (m4)
Expand Down
106 changes: 102 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,12 +4163,87 @@
{
"end": "'",
"start": "'"
},
{
"end": "[[",
"start": "]]"
}
],
"shebangs": [
"lua"
]
},
"Luau": {
"complexitychecks": [
"for ",
"for(",
"if ",
"if(",
"while ",
"while(",
"else ",
"else(",
"elseif ",
"elseif(",
"or ",
"and ",
"~= ",
"== "
],
"extensions": [
"luau"
],
"line_comment": [
"--"
],
"multi_line": [
[
"--[[",
"]]"
],
[
"--[=[",
"]=]"
],
[
"--[==[",
"]==]"
],
[
"--[===[",
"]===]"
],
[
"--[====[",
"]====]"
],
[
"--[=====[",
"]=====]"
]
],
"quotes": [
{
"end": "\\\"",
"start": "\\\""
},
{
"end": "'",
"start": "'"
},
{
"end": "`",
"start": "`"
},
{
"end": "[[",
"start": "]]"
}
],
"shebangs": [
"luau"
]
},
"Lucius": {
"complexitychecks": [
"for ",
Expand Down
2 changes: 1 addition & 1 deletion processor/constants.go

Large diffs are not rendered by default.

0 comments on commit 8513b92

Please sign in to comment.