Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ Lisp
LLVM
Logtalk
Lua
Luau
Lucius
M1Assembly
Madlang
Expand Down
9 changes: 8 additions & 1 deletion languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,14 @@
"line_comment": ["--"],
"multi_line_comments": [["--[[", "]]"]],
"quotes": [["\\\"", "\\\""], ["'", "'"]],
"extensions": ["lua", "luau"]
"extensions": ["lua"]
},
"Luau": {
"line_comment": ["--"],
"multi_line_comments": [["--[[", "]]"]],
"quotes": [["\\\"", "\\\""], ["'", "'"], ["`", "`"]],
"verbatim_quotes": [["[[", "]]"]],
"extensions": ["luau"]
},
"Lucius": {
"line_comment": ["//"],
Expand Down
20 changes: 20 additions & 0 deletions tests/data/luau.luau
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
-- 20 lines 11 code 5 comments 4 blanks

-- Single-line comment
--[[
multiline comment with "quotes" and `backticks`
]]

local _single = 'single quoted'
local _double = "double quoted"
local _name = "Luau"

local _longString = [[
line one
line two
]]

local _interpolated = `hello {_name}`
local _multiline = `welcome {
_name
}!`
Loading