From d436ebaba20ffc31c3fc807af55fb4ff40fe65ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 24 May 2022 19:49:36 +0800 Subject: resolve #1140 support folding `---@alias` --- script/core/folding.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'script/core') diff --git a/script/core/folding.lua b/script/core/folding.lua index 4f93aed9..6154ba72 100644 --- a/script/core/folding.lua +++ b/script/core/folding.lua @@ -143,6 +143,15 @@ local care = { } results[#results+1] = folding end, + ['doc.alias'] = function (source, text, results) + local folding = { + start = source.start, + finish = source.bindGroup[#source.bindGroup].finish, + kind = 'comment', + hideLastLine = true, + } + results[#results+1] = folding + end } ---@async -- cgit v1.2.3