diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-09 23:55:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-09 23:55:02 +0800 |
commit | 63168b71c091c154c8fdd65e9360755c15395fb7 (patch) | |
tree | 3b977b93831d6b452cd37af2631bac7ae2c78733 /script/vm/compiler.lua | |
parent | 0eec0d93a672e61a8880e91be5bc76802669fbc5 (diff) | |
download | lua-language-server-63168b71c091c154c8fdd65e9360755c15395fb7.zip |
fix #1680
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index 0cc27d81..06f09ebb 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -1367,7 +1367,8 @@ local compilerSwitch = util.switch() vm.compileByParentNode(source.parent, source.tindex, false, function (src) if src.type == 'doc.field' or src.type == 'doc.type.field' - or src.type == 'doc.type.name' then + or src.type == 'doc.type.name' + or guide.isLiteral(src) then hasMarkDoc = true vm.setNode(source, vm.compileNode(src)) end |