From 0e159ee03730b74c284c5ad079215b31461d266e 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, 5 Apr 2022 05:56:03 +0800 Subject: update --- script/parser/guide.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'script/parser/guide.lua') diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 15f52585..92e4edab 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -231,6 +231,10 @@ function m.isLiteral(obj) or tp == 'integer' or tp == 'table' or tp == 'function' + or tp == 'doc.type.function' + or tp == 'doc.type.table' + or tp == 'doc.type.string' + or tp == 'doc.type.integer' end --- 获取字面量 @@ -820,8 +824,6 @@ local isSetMap = { ['doc.class'] = true, ['doc.alias'] = true, ['doc.field'] = true, - ['doc.type.function'] = true, - ['doc.type.table'] = true, ['doc.class.name'] = true, ['doc.alias.name'] = true, ['doc.field.name'] = true, -- cgit v1.2.3