summaryrefslogtreecommitdiff
path: root/script/proto
diff options
context:
space:
mode:
authorArcanox <arcanox@arcanox.me>2021-09-24 02:53:39 -0500
committerArcanox <arcanox@arcanox.me>2021-09-24 02:53:39 -0500
commit9df85719fb0e2e91f1e6d5621adb3063a64594c0 (patch)
tree7c5c25382b276166a415f42aaa665bcf909ad776 /script/proto
parent0c8c6bbf23082d0b858646846a47a3001f718ae2 (diff)
downloadlua-language-server-9df85719fb0e2e91f1e6d5621adb3063a64594c0.zip
Improve classification of semantic tokens to provide a great number more syntax highlighting options (almost on par with TypeScript in VSCode)
Diffstat (limited to 'script/proto')
-rw-r--r--script/proto/define.lua15
1 files changed, 9 insertions, 6 deletions
diff --git a/script/proto/define.lua b/script/proto/define.lua
index 2e61bc3e..f3fa1ba5 100644
--- a/script/proto/define.lua
+++ b/script/proto/define.lua
@@ -238,12 +238,14 @@ m.SymbolKind = {
}
m.TokenModifiers = {
- ["declaration"] = 1 << 0,
- ["documentation"] = 1 << 1,
- ["static"] = 1 << 2,
- ["abstract"] = 1 << 3,
- ["deprecated"] = 1 << 4,
- ["readonly"] = 1 << 5,
+ ["declaration"] = 1 << 0,
+ ["documentation"] = 1 << 1,
+ ["static"] = 1 << 2,
+ ["abstract"] = 1 << 3,
+ ["deprecated"] = 1 << 4,
+ ["readonly"] = 1 << 5,
+ ["defaultLibrary"] = 1 << 6,
+ ["local"] = 1 << 7,
}
m.TokenTypes = {
@@ -266,6 +268,7 @@ m.TokenTypes = {
["parameter"] = 16,
["property"] = 17,
["label"] = 18,
+ ["method"] = 19,
}
m.BuiltIn = {