summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-09 19:33:28 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-09 19:33:28 +0800
commitbc92c4dcefc0c87420c7d4b239c1eb4b9d14588c (patch)
tree80b442f8a0c82faf4d4af9a8484bb6cfca8c94ec /script/core
parentf8f9b68d3e89e602bcfe80fa18b2f5cb0846e846 (diff)
downloadlua-language-server-bc92c4dcefc0c87420c7d4b239c1eb4b9d14588c.zip
add `doc.type.code`
Diffstat (limited to 'script/core')
-rw-r--r--script/core/semantic-tokens.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/script/core/semantic-tokens.lua b/script/core/semantic-tokens.lua
index b16f55fd..c892aaac 100644
--- a/script/core/semantic-tokens.lua
+++ b/script/core/semantic-tokens.lua
@@ -675,6 +675,15 @@ local Care = util.switch()
type = define.TokenTypes.variable,
}
end)
+ : case 'doc.type.code'
+ : call(function (source, options, results)
+ results[#results+1] = {
+ start = source.start,
+ finish = source.finish,
+ type = define.TokenTypes.string,
+ modifieres = define.TokenModifiers.abstract,
+ }
+ end)
local function buildTokens(uri, results)
local tokens = {}