summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-14 18:35:53 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-14 18:35:53 +0800
commitb154ddeb48450cdb78a589abf3705d3f9df758d7 (patch)
treebf52646cb57c454eff71dd25eaad6f2ceb3ec047 /script
parentc9bc6d04bf0acd92e2e84b75de580310ac60f046 (diff)
downloadlua-language-server-b154ddeb48450cdb78a589abf3705d3f9df758d7.zip
build source for class
Diffstat (limited to 'script')
-rw-r--r--script/provider/build-meta.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/provider/build-meta.lua b/script/provider/build-meta.lua
index f0973228..2c4a29c2 100644
--- a/script/provider/build-meta.lua
+++ b/script/provider/build-meta.lua
@@ -92,6 +92,7 @@ local function buildText(root, class)
local lines = {}
addComments(lines, class.comment)
+ lines[#lines+1] = ('---@source %s'):format(class.location:gsub('#', ':'))
if class.baseClass == '' then
lines[#lines+1] = ('---@class %s'):format(mergeString(class.namespace, class.name))
else