From cf646670972e75d38fbbd7f18e9ccf47de73f3fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 11 Nov 2020 19:47:09 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=94=B9=20hover=20enum=20=E7=9A=84=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/core/hover/description.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script-beta/core/hover') diff --git a/script-beta/core/hover/description.lua b/script-beta/core/hover/description.lua index 31d5bf58..3f39d959 100644 --- a/script-beta/core/hover/description.lua +++ b/script-beta/core/hover/description.lua @@ -207,8 +207,8 @@ local function buildEnumChunk(docType, name) local lines = {} lines[#lines+1] = ('%s: %s'):format(name, table.concat(types)) for _, enum in ipairs(enums) do - lines[#lines+1] = (' |%s%s%s'):format( - enum.default and '>' or ' ', + lines[#lines+1] = (' %s %s%s'):format( + enum.default and '->' or ' |', enum[1], enum.comment and (' -- %s'):format(enum.comment) or '' ) -- cgit v1.2.3