diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-05 05:56:03 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-05 05:56:03 +0800 |
commit | 0e159ee03730b74c284c5ad079215b31461d266e (patch) | |
tree | 9fd2d7aef9903d9c9c2d07749ea9f1175b0eee77 /script/parser | |
parent | 9310038417408a5c2f6c148447d951f248fce2fe (diff) | |
download | lua-language-server-0e159ee03730b74c284c5ad079215b31461d266e.zip |
update
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/guide.lua | 6 |
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, |