summaryrefslogtreecommitdiff
path: root/script-beta/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-08-28 17:24:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-08-28 17:24:19 +0800
commitc7102d92354176d99ddfe265e199d370065b4ee8 (patch)
tree91ac6ed9474da9ea1c10146ecfa316f486475aa5 /script-beta/parser/guide.lua
parent697aa9822b989d670c38bab8b4a0c25352a1b316 (diff)
downloadlua-language-server-c7102d92354176d99ddfe265e199d370065b4ee8.zip
修正bug
Diffstat (limited to 'script-beta/parser/guide.lua')
-rw-r--r--script-beta/parser/guide.lua7
1 files changed, 7 insertions, 0 deletions
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