summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
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,
}