catppuccin/samples/lua.lua
Hamothy b9bbd77c7f
docs: restructure & improve contrib docs (#1876)
* 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>
2023-01-26 19:53:05 +01:00

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
}