summaryrefslogtreecommitdiff
path: root/locale/pt-br/script.lua
diff options
context:
space:
mode:
authorcarsakiller <61925890+carsakiller@users.noreply.github.com>2022-11-28 13:10:19 -0500
committerGitHub <noreply@github.com>2022-11-28 13:10:19 -0500
commit8d10822a1a3a3427d3b0f102060fce64cd568366 (patch)
tree4416b49d95df002c89b493a021f972c9fcc5e45d /locale/pt-br/script.lua
parent7400644545baad38c0830c2cbb596f51b88316e5 (diff)
downloadlua-language-server-8d10822a1a3a3427d3b0f102060fce64cd568366.zip
add: literal enum example to `@alias` #1685 (#1730)
Diffstat (limited to 'locale/pt-br/script.lua')
-rw-r--r--locale/pt-br/script.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua
index 0d0d0933..e733a00f 100644
--- a/locale/pt-br/script.lua
+++ b/locale/pt-br/script.lua
@@ -721,6 +721,20 @@ function find(path, pattern) end
---@param style font-style Style to apply
function setFontStyle(style) end
```
+
+### Literal Enum
+```
+local enums = {
+ READ = 0,
+ WRITE = 1,
+ CLOSED = 2
+}
+
+---@alias FileStates
+---| `enums.READ`
+---| `enums.WRITE`
+---| `enums.CLOSE`
+```
---
[View Wiki](https://github.com/sumneko/lua-language-server/wiki/Annotations#alias)
]=]