catppuccin/samples/lua.lua

28 lines
468 B
Lua
Raw Normal View History

---@class Emmy
local var = {} -- a short comment
local a, b, c = true, false, nil
--region my class members region
---@alias MyType Emmy
--- doc comment
---@param par1 Par1Type @comments
function var:fun(par1, par2)
print('hello')
return self.len + 2
end
2021-12-08 15:45:11 +00:00
---@overload fun(name:string):Emmy
function var.staticFun()
end
--endregion end my class members region
2021-12-08 15:45:11 +00:00
---@return Emmy
function findEmmy()
return "string" .. var
2021-12-08 15:45:11 +00:00
end
globalVar = {
property = value
}