summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-24 05:46:51 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-24 05:46:51 +0800
commitf8551a93927ab782ddd58397f86580dc6301a4be (patch)
treecba5bb076c6b1d360ebf5306cebb491f28a40c8d /script/parser/luadoc.lua
parentb390ad6411478c2cccadd9750b01971052a7e2c4 (diff)
downloadlua-language-server-f8551a93927ab782ddd58397f86580dc6301a4be.zip
`setlocal` can be marked by `---@type`
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index e69e98d3..3b50db34 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1390,6 +1390,7 @@ local function bindDocsBetween(sources, binded, bindSources, start, finish)
if src.start >= start then
if src.type == 'local'
or src.type == 'self'
+ or src.type == 'setlocal'
or src.type == 'setglobal'
or src.type == 'tablefield'
or src.type == 'tableindex'