diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-26 23:06:10 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-26 23:06:10 +0800 |
commit | 12823818e00428d0cdb55c0c28738267c6932ae1 (patch) | |
tree | a60dba02b013eb258dabe6ade2d0c6933ca03f68 /script/parser/luadoc.lua | |
parent | 5933902449c992179a0958a7d401a1d970e874a7 (diff) | |
download | lua-language-server-12823818e00428d0cdb55c0c28738267c6932ae1.zip |
fix match of `--[[@`
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r-- | script/parser/luadoc.lua | 2 |
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', |