summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-06-25 10:55:59 +0800
committerGitHub <noreply@github.com>2023-06-25 10:55:59 +0800
commit0d178e1c2336022c7d9996367cfe2fd0fce91857 (patch)
tree996b6287184b5ad13a00057a0bd672bba1cdd0c6
parent5c4f5b20595a6d2452569a5b9d2007e2bb19e18b (diff)
parentc5e58f83dc5831f8945e88d174294ad31f32d3a9 (diff)
downloadlua-language-server-0d178e1c2336022c7d9996367cfe2fd0fce91857.zip
Merge pull request #2178 from carsakiller/add-luadoc-desc-source
add: description for `@source`
-rw-r--r--locale/en-us/script.lua27
-rw-r--r--locale/pt-br/script.lua27
-rw-r--r--locale/zh-cn/script.lua27
-rw-r--r--locale/zh-tw/script.lua27
4 files changed, 108 insertions, 0 deletions
diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua
index 3c2dd28b..19bded8d 100644
--- a/locale/en-us/script.lua
+++ b/locale/en-us/script.lua
@@ -1199,6 +1199,33 @@ local function setColor(color) end
setColor(colors.green)
```
]=]
+LUADOC_DESC_SOURCE =
+[=[
+Provide a reference to some source code which lives in another file. When
+searching for the defintion of an item, its `@source` will be used.
+
+## Syntax
+`@source <path>`
+
+## Usage
+```
+---You can use absolute paths
+---@source C:/Users/me/Documents/program/myFile.c
+local a
+
+---Or URIs
+---@source file:///C:/Users/me/Documents/program/myFile.c:10
+local b
+
+---Or relative paths
+---@source local/file.c
+local c
+
+---You can also include line and char numbers
+---@source local/file.c:10:8
+local d
+```
+]=]
LUADOC_DESC_PACKAGE =
[=[
Mark a function as private to the file it is defined in. A packaged function
diff --git a/locale/pt-br/script.lua b/locale/pt-br/script.lua
index 804779e3..c869fab6 100644
--- a/locale/pt-br/script.lua
+++ b/locale/pt-br/script.lua
@@ -1199,6 +1199,33 @@ local function setColor(color) end
setColor(colors.green)
```
]=]
+LUADOC_DESC_SOURCE = -- TODO: need translate!
+[=[
+Provide a reference to some source code which lives in another file. When
+searching for the defintion of an item, its `@source` will be used.
+
+## Syntax
+`@source <path>`
+
+## Usage
+```
+---You can use absolute paths
+---@source C:/Users/me/Documents/program/myFile.c
+local a
+
+---Or URIs
+---@source file:///C:/Users/me/Documents/program/myFile.c:10
+local b
+
+---Or relative paths
+---@source local/file.c
+local c
+
+---You can also include line and char numbers
+---@source local/file.c:10:8
+local d
+```
+]=]
LUADOC_DESC_PACKAGE = -- TODO: need translate!
[=[
Mark a function as private to the file it is defined in. A packaged function
diff --git a/locale/zh-cn/script.lua b/locale/zh-cn/script.lua
index a898c4f0..0e2ff3c6 100644
--- a/locale/zh-cn/script.lua
+++ b/locale/zh-cn/script.lua
@@ -1199,6 +1199,33 @@ local function setColor(color) end
setColor(colors.green)
```
]=]
+LUADOC_DESC_SOURCE = -- TODO: need translate!
+[=[
+Provide a reference to some source code which lives in another file. When
+searching for the defintion of an item, its `@source` will be used.
+
+## Syntax
+`@source <path>`
+
+## Usage
+```
+---You can use absolute paths
+---@source C:/Users/me/Documents/program/myFile.c
+local a
+
+---Or URIs
+---@source file:///C:/Users/me/Documents/program/myFile.c:10
+local b
+
+---Or relative paths
+---@source local/file.c
+local c
+
+---You can also include line and char numbers
+---@source local/file.c:10:8
+local d
+```
+]=]
LUADOC_DESC_PACKAGE = -- TODO: need translate!
[=[
Mark a function as private to the file it is defined in. A packaged function
diff --git a/locale/zh-tw/script.lua b/locale/zh-tw/script.lua
index e19eb220..7331a43b 100644
--- a/locale/zh-tw/script.lua
+++ b/locale/zh-tw/script.lua
@@ -1193,6 +1193,33 @@ local function setColor(color) end
setColor(colors.green)
```
]=]
+LUADOC_DESC_SOURCE = -- TODO: need translate!
+[=[
+Provide a reference to some source code which lives in another file. When
+searching for the defintion of an item, its `@source` will be used.
+
+## Syntax
+`@source <path>`
+
+## Usage
+```
+---You can use absolute paths
+---@source C:/Users/me/Documents/program/myFile.c
+local a
+
+---Or URIs
+---@source file:///C:/Users/me/Documents/program/myFile.c:10
+local b
+
+---Or relative paths
+---@source local/file.c
+local c
+
+---You can also include line and char numbers
+---@source local/file.c:10:8
+local d
+```
+]=]
LUADOC_DESC_PACKAGE = -- TODO: need translate!
[=[
Mark a function as private to the file it is defined in. A packaged function