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 47907d4d..ce869ed1 100644
--- a/script/core/semantic-tokens.lua
+++ b/script/core/semantic-tokens.lua
@@ -205,7 +205,7 @@ local function buildTokens(uri, results)
local len = i * 5 - 5
tokens[len + 1] = deltaLine
tokens[len + 2] = deltaStartChar
- tokens[len + 3] = finishPos.character - startPos.character + 1 -- length
+ tokens[len + 3] = finishPos.character - startPos.character -- length
tokens[len + 4] = source.type
tokens[len + 5] = source.modifieres or 0
end