summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-03-08 19:35:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-03-08 19:35:12 +0800
commit964864d41cb1b888f9812d6edc7371762f16863f (patch)
treea73df99bbec531250425a9e9856bee0cd3f0a8b1 /script/core
parent82ec96f2bd63a1d691e919c668fb80b01a05a358 (diff)
downloadlua-language-server-964864d41cb1b888f9812d6edc7371762f16863f.zip
fix
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 c5a77563..ef426633 100644
--- a/script/core/semantic-tokens.lua
+++ b/script/core/semantic-tokens.lua
@@ -826,7 +826,7 @@ return function (uri, start, finish)
}
results[#results+1] = {
start = comm.start + #head + 1,
- finish = comm.start + #head + 2 + #comm.text:match('%S+', #head + 1),
+ finish = comm.start + #head + 2 + #comm.text:match('%S*', #head + 1),
type = define.TokenTypes.keyword,
modifieres = define.TokenModifiers.documentation,
}