diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-11 13:03:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-11 13:03:22 +0800 |
commit | d4a863d3c238714f12e94f4cb42990c48f4862a0 (patch) | |
tree | 1b559aaf9e0333060e99dd9a39489ab8491635b7 /script | |
parent | 8cdff13ef2cd6d5529821134997c517c3494a568 (diff) | |
download | lua-language-server-d4a863d3c238714f12e94f4cb42990c48f4862a0.zip |
update semantic tokens
Diffstat (limited to 'script')
-rw-r--r-- | script/proto/define.lua | 52 |
1 files changed, 28 insertions, 24 deletions
diff --git a/script/proto/define.lua b/script/proto/define.lua index 1903e8bd..63153423 100644 --- a/script/proto/define.lua +++ b/script/proto/define.lua @@ -210,36 +210,40 @@ m.SymbolKind = { m.TokenModifiers = { ["declaration"] = 1 << 0, - ["documentation"] = 1 << 1, - ["static"] = 1 << 2, - ["abstract"] = 1 << 3, + ["definition"] = 1 << 1, + ["readonly"] = 1 << 2, + ["static"] = 1 << 3, ["deprecated"] = 1 << 4, - ["readonly"] = 1 << 5, - ["defaultLibrary"] = 1 << 6, - ["local"] = 1 << 7, + ["abstract"] = 1 << 5, + ["async"] = 1 << 6, + ["modification"] = 1 << 7, + ["documentation"] = 1 << 8, + ["defaultLibrary"] = 1 << 9, } m.TokenTypes = { - ["comment"] = 0, - ["keyword"] = 1, - ["number"] = 2, - ["regexp"] = 3, - ["operator"] = 4, - ["namespace"] = 5, - ["type"] = 6, - ["struct"] = 7, - ["class"] = 8, - ["interface"] = 9, - ["enum"] = 10, - ["typeParameter"] = 11, + ["namespace"] = 00, + ["type"] = 01, + ["class"] = 02, + ["enum"] = 03, + ["interface"] = 04, + ["struct"] = 05, + ["typeParameter"] = 06, + ["parameter"] = 07, + ["variable"] = 08, + ["property"] = 09, + ["enumMember"] = 10, + ["event"] = 11, ["function"] = 12, - ["member"] = 13, + ["method"] = 13, ["macro"] = 14, - ["variable"] = 15, - ["parameter"] = 16, - ["property"] = 17, - ["label"] = 18, - ["method"] = 19, + ["keyword"] = 15, + ["modifier"] = 16, + ["comment"] = 17, + ["string"] = 18, + ["number"] = 19, + ["regexp"] = 20, + ["operator"] = 21, } m.BuiltIn = { |