From 5aaecf51b9fccddf52ed3e4749757a03819fae61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 16 Jan 2023 21:06:06 +0800 Subject: support `---@meta [name]` once declared `name`, user can only require this file by declared name meta file can not be required with name `_` --- script/parser/luadoc.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'script/parser/luadoc.lua') diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 1a88d385..545f9d95 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1116,8 +1116,10 @@ local docSwitch = util.switch() end) : case 'meta' : call(function () + local requireName = parseName('doc.meta.name') return { type = 'doc.meta', + name = requireName, start = getFinish(), finish = getFinish(), } -- cgit v1.2.3