summaryrefslogtreecommitdiff
path: root/script/parser/luadoc.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-26 23:06:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-26 23:06:10 +0800
commit12823818e00428d0cdb55c0c28738267c6932ae1 (patch)
treea60dba02b013eb258dabe6ade2d0c6933ca03f68 /script/parser/luadoc.lua
parent5933902449c992179a0958a7d401a1d970e874a7 (diff)
downloadlua-language-server-12823818e00428d0cdb55c0c28738267c6932ae1.zip
fix match of `--[[@`
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r--script/parser/luadoc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index 89a5ee9b..d8e31950 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -1313,7 +1313,7 @@ end
local function buildLuaDoc(comment)
local text = comment.text
local startPos = (comment.type == 'comment.short' and text:match '^%-%s*@()')
- or (comment.type == 'comment.long' and text:match '@()')
+ or (comment.type == 'comment.long' and text:match '^@()')
if not startPos then
return {
type = 'doc.comment',