summaryrefslogtreecommitdiff
path: root/script-beta/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-10-23 15:54:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-10-23 15:54:22 +0800
commitdd4a4a8ef8ccbceb475b8cb8d34cc580c5715c0c (patch)
tree619e9a32be2bcfd85b34d6a7704bfcb1fce5dcbc /script-beta/core
parent7ed999a6af7ca021d577a1853efb1d11916d34f9 (diff)
downloadlua-language-server-dd4a4a8ef8ccbceb475b8cb8d34cc580c5715c0c.zip
修复语义着色错误
Diffstat (limited to 'script-beta/core')
-rw-r--r--script-beta/core/semantic-tokens.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/script-beta/core/semantic-tokens.lua b/script-beta/core/semantic-tokens.lua
index 5c6fa1b5..222f54b6 100644
--- a/script-beta/core/semantic-tokens.lua
+++ b/script-beta/core/semantic-tokens.lua
@@ -11,7 +11,7 @@ Care['setglobal'] = function (source, results)
start = source.start,
finish = source.finish,
type = define.TokenTypes.namespace,
- modifieres = define.TokenTypes.deprecated,
+ modifieres = define.TokenModifiers.deprecated,
}
end
Care['getglobal'] = function (source, results)
@@ -24,7 +24,7 @@ Care['getglobal'] = function (source, results)
start = source.start,
finish = source.finish,
type = define.TokenTypes.namespace,
- modifieres = define.TokenTypes.static,
+ modifieres = define.TokenModifiers.static,
}
end
else
@@ -32,7 +32,7 @@ Care['getglobal'] = function (source, results)
start = source.start,
finish = source.finish,
type = define.TokenTypes.namespace,
- modifieres = define.TokenTypes.deprecated,
+ modifieres = define.TokenModifiers.deprecated,
}
end
end
@@ -45,7 +45,7 @@ Care['tablefield'] = function (source, results)
start = field.start,
finish = field.finish,
type = define.TokenTypes.property,
- modifieres = define.TokenTypes.declaration,
+ modifieres = define.TokenModifiers.declaration,
}
end
Care['getlocal'] = function (source, results)
@@ -56,7 +56,7 @@ Care['getlocal'] = function (source, results)
start = source.start,
finish = source.finish,
type = define.TokenTypes.parameter,
- modifieres = define.TokenTypes.declaration,
+ modifieres = define.TokenModifiers.declaration,
}
return
end
@@ -79,7 +79,7 @@ Care['getlocal'] = function (source, results)
start = source.start,
finish = source.finish,
type = define.TokenTypes.interface,
- modifieres = define.TokenTypes.declaration,
+ modifieres = define.TokenModifiers.declaration,
}
return
end