summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-28 17:54:01 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-28 17:54:01 +0800
commit5cc3175093a363f5e688a2a5c06a0ab3db7f0423 (patch)
tree8d5c306348fc4897d6679e459647098319815969 /script/parser
parent73ea274cbef78727aea2f6f47ea746321e44531c (diff)
downloadlua-language-server-5cc3175093a363f5e688a2a5c06a0ab3db7f0423.zip
stash
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index be9f3742..2bbdf838 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -873,6 +873,9 @@ function m.getKeyType(obj)
elseif tp == 'dummy' then
return 'string'
end
+ if tp == 'doc.field.name' then
+ return 'string'
+ end
return m.getKeyTypeOfLiteral(obj)
end