Skip to content

Commit 1282381

Browse files
committed
fix match of --[[@
1 parent 5933902 commit 1282381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/parser/luadoc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ end
13131313
local function buildLuaDoc(comment)
13141314
local text = comment.text
13151315
local startPos = (comment.type == 'comment.short' and text:match '^%-%s*@()')
1316-
or (comment.type == 'comment.long' and text:match '@()')
1316+
or (comment.type == 'comment.long' and text:match '^@()')
13171317
if not startPos then
13181318
return {
13191319
type = 'doc.comment',

0 commit comments

Comments
 (0)