diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-04 00:41:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 00:41:24 +0800 |
commit | 1abeb31839780be62e37681a01dd395dceee7239 (patch) | |
tree | 6722bf05078b92aeaa1ee68c25937828f240691f | |
parent | 2e22590dc8fe124a4429ec25954fb757648e8c24 (diff) | |
parent | fe96e7600f227ed6f45e4a150156fbbe5077be3f (diff) | |
download | lua-language-server-1abeb31839780be62e37681a01dd395dceee7239.zip |
Merge pull request #971 from xiyaowong/patch-1
feat(semantic-tokens): mark annotations(@...) as keywords
-rw-r--r-- | script/core/semantic-tokens.lua | 2 |
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 |