diff options
Diffstat (limited to 'locale')
-rw-r--r-- | locale/en-us/script.lua | 14 | ||||
-rw-r--r-- | locale/pt-br/script.lua | 14 | ||||
-rw-r--r-- | locale/zh-cn/script.lua | 14 | ||||
-rw-r--r-- | locale/zh-tw/script.lua | 14 |
4 files changed, 56 insertions, 0 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index 16826aa9..ba083a11 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/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) ]=] 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) ]=] diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua index 3c7a7fd2..cc77ad79 100644 --- a/locale/zh-cn/script.lua +++ b/locale/zh-cn/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) ]=] diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua index 84c23f8a..27686051 100644 --- a/locale/zh-tw/script.lua +++ b/locale/zh-tw/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` +``` --- [檢視文件](https://github.com/sumneko/lua-language-server/wiki/Annotations#alias) ]=] |