mirror of
https://github.com/catppuccin/catppuccin
synced 2024-11-10 06:04:21 +00:00
b9bbd77c7f
* docs: restructure & improve contrib docs * chore: rework samples code * docs: fix capitalization & brand names * docs: PR comments & try to standardise palette vs flavor * docs: add sample-programs * docs: update submission guidelines (refs: #1821) * refactor: tidy up docs Co-authored-by: winston <hey@winston.sh>
27 lines
468 B
Lua
27 lines
468 B
Lua
---@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
|
|
|
|
---@overload fun(name:string):Emmy
|
|
function var.staticFun()
|
|
end
|
|
--endregion end my class members region
|
|
|
|
---@return Emmy
|
|
function findEmmy()
|
|
return "string" .. var
|
|
end
|
|
|
|
globalVar = {
|
|
property = value
|
|
}
|