From 5a9dd92de2e1caed7cc66c6448a0ee951b47bd4e 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, 17 Nov 2020 14:45:49 +0800 Subject: =?UTF-8?q?=E8=BF=98=E6=98=AF=E5=BE=97=E6=8A=8A=E5=BA=93=E5=90=8D?= =?UTF-8?q?=E4=B8=8E=E7=B1=BB=E5=9E=8B=E5=90=8D=E5=8C=BA=E5=88=86=E5=BC=80?= =?UTF-8?q?=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/core/hover/name.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'script-beta/core') diff --git a/script-beta/core/hover/name.lua b/script-beta/core/hover/name.lua index 8394a75b..230de253 100644 --- a/script-beta/core/hover/name.lua +++ b/script-beta/core/hover/name.lua @@ -20,6 +20,9 @@ local function asField(source, oop) local class = vm.getClass(source.node, 'deep') local node = class or guide.getName(source.node) or '?' local method = guide.getName(source) + if node:sub(-1) == '*' then + node = node:sub(1, -2) + end if oop then return ('%s:%s'):format(node, method) else -- cgit v1.2.3