summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-05 05:56:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-05 05:56:03 +0800
commit0e159ee03730b74c284c5ad079215b31461d266e (patch)
tree9fd2d7aef9903d9c9c2d07749ea9f1175b0eee77 /script/parser
parent9310038417408a5c2f6c148447d951f248fce2fe (diff)
downloadlua-language-server-0e159ee03730b74c284c5ad079215b31461d266e.zip
update
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua6
1 files changed, 4 insertions, 2 deletions
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,