summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
authorwongxy <xiyao.wong@foxmail.com>2022-03-04 00:22:02 +0800
committerGitHub <noreply@github.com>2022-03-04 00:22:02 +0800
commitfe96e7600f227ed6f45e4a150156fbbe5077be3f (patch)
tree6722bf05078b92aeaa1ee68c25937828f240691f /script/core
parent2e22590dc8fe124a4429ec25954fb757648e8c24 (diff)
downloadlua-language-server-fe96e7600f227ed6f45e4a150156fbbe5077be3f.zip
feat(semantic-tokens): mark annotations(@...) as keywords
Diffstat (limited to 'script/core')
-rw-r--r--script/core/semantic-tokens.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/semantic-tokens.lua b/script/core/semantic-tokens.lua
index bb6282a4..a4429e03 100644
--- a/script/core/semantic-tokens.lua
+++ b/script/core/semantic-tokens.lua
@@ -828,7 +828,7 @@ return function (uri, start, finish)
results[#results+1] = {
start = comm.start + 3,
finish = comm.start + 2 + #comm.text:match '%S+',
- type = define.TokenTypes.comment,
+ type = define.TokenTypes.keyword,
modifieres = define.TokenModifiers.documentation,
}
else