diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-03-08 19:35:12 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-03-08 19:35:12 +0800 |
commit | 964864d41cb1b888f9812d6edc7371762f16863f (patch) | |
tree | a73df99bbec531250425a9e9856bee0cd3f0a8b1 /script/core | |
parent | 82ec96f2bd63a1d691e919c668fb80b01a05a358 (diff) | |
download | lua-language-server-964864d41cb1b888f9812d6edc7371762f16863f.zip |
fix
Diffstat (limited to 'script/core')
-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 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, } |