summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-03-08 22:07:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-03-08 22:07:21 +0800
commit7ef36fadb3607f8472239bd435b666399b0327d1 (patch)
tree10c0558793449a89bd13678a3ef4471bfc2094ab /script
parent2704d390c550515d1b510a7277841288ee73f1bb (diff)
downloadlua-language-server-7ef36fadb3607f8472239bd435b666399b0327d1.zip
fix #1928
Diffstat (limited to 'script')
-rw-r--r--script/vm/compiler.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index b97517ba..8487ec56 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -1357,6 +1357,7 @@ local compilerSwitch = util.switch()
if src.type == 'doc.field'
or src.type == 'doc.type.field'
or src.type == 'doc.type.name'
+ or src.type == 'doc.type'
or guide.isLiteral(src) then
hasMarkDoc = true
vm.setNode(source, vm.compileNode(src))