From fe96e7600f227ed6f45e4a150156fbbe5077be3f Mon Sep 17 00:00:00 2001 From: wongxy Date: Fri, 4 Mar 2022 00:22:02 +0800 Subject: feat(semantic-tokens): mark annotations(@...) as keywords --- script/core/semantic-tokens.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/core') 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 -- cgit v1.2.3