From f8ca20e2227c2d1bbb2b7875c411ad36aab9f83e 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, 18 Aug 2020 16:28:14 +0800 Subject: =?UTF-8?q?=E6=94=AF=E6=8C=81=20select=20=E7=9A=84=E6=8E=A8?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/parser/guide.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'script-beta/parser/guide.lua') diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua index daa648d6..7a649738 100644 --- a/script-beta/parser/guide.lua +++ b/script-beta/parser/guide.lua @@ -602,6 +602,8 @@ function m.getSimpleName(obj) return m.getKeyName(key) elseif obj.type == 'table' then return ('t|%p'):format(obj) + elseif obj.type == 'select' then + return ('v|%p'):format(obj) end return m.getKeyName(obj) end @@ -893,6 +895,9 @@ local function buildSimpleList(obj, max) or cur.type == 'getglobal' then list[i] = cur break + elseif cur.type == 'select' then + list[i] = cur + break elseif cur.type == 'function' or cur.type == 'main' then break @@ -916,7 +921,8 @@ function m.getSimple(obj, max) or obj.type == 'setlocal' or obj.type == 'setglobal' or obj.type == 'getglobal' - or obj.type == 'tableindex' then + or obj.type == 'tableindex' + or obj.type == 'select' then simpleList = buildSimpleList(obj, max) elseif obj.type == 'field' or obj.type == 'method' then -- cgit v1.2.3