From c7102d92354176d99ddfe265e199d370065b4ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 28 Aug 2020 17:24:19 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/parser/guide.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'script-beta/parser/guide.lua') diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua index be082527..5fdb1e25 100644 --- a/script-beta/parser/guide.lua +++ b/script-beta/parser/guide.lua @@ -1070,6 +1070,13 @@ function m.getObjectValue(obj) while obj.type == 'paren' do obj = obj.exp end + if obj.library + or obj.type == 'boolean' + or obj.type == 'number' + or obj.type == 'integer' + or obj.type == 'string' then + return obj + end if obj.value then return obj.value end -- cgit v1.2.3