summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-02-20 15:04:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-02-20 15:04:57 +0800
commit926928e39b7760e50f89d52e5da8ad7e4eea8355 (patch)
tree12149bf1d342e7c5f3df67057e03b1fba595cb9f /script/core
parent56fc049c519e2e0bddd9c9192027e04198122fb3 (diff)
downloadlua-language-server-926928e39b7760e50f89d52e5da8ad7e4eea8355.zip
fix #392 `LuaDoc`: revert compatible with `--@`
Diffstat (limited to 'script/core')
-rw-r--r--script/core/completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index 82374825..2e773fa5 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -1721,7 +1721,7 @@ local function tryLuaDoc(ast, text, offset, results)
return
end
-- 尝试 ---@$
- local cate = line:match('^-?%s*@(%a*)$')
+ local cate = line:match('^-%s*@(%a*)$')
if cate then
tryLuaDocCate(cate, results)
return