diff options
author | carsakiller <carsakiller@gmail.com> | 2023-06-24 00:33:42 -0400 |
---|---|---|
committer | carsakiller <carsakiller@gmail.com> | 2023-06-24 00:33:42 -0400 |
commit | c5e58f83dc5831f8945e88d174294ad31f32d3a9 (patch) | |
tree | 996b6287184b5ad13a00057a0bd672bba1cdd0c6 /locale/zh-tw | |
parent | 5c4f5b20595a6d2452569a5b9d2007e2bb19e18b (diff) | |
download | lua-language-server-c5e58f83dc5831f8945e88d174294ad31f32d3a9.zip |
add: description for `@source`
Diffstat (limited to 'locale/zh-tw')
-rw-r--r-- | locale/zh-tw/script.lua | 27 |
1 files changed, 27 insertions, 0 deletions
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 |