diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-05-15 19:16:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-05-15 19:16:42 +0800 |
commit | b17a7ec335b2702dd3562ab2d3380effba08a51a (patch) | |
tree | 804485ea67d40e9b2270ba204ff0c3d54890b691 /script/constant | |
parent | aeae9df8137820f1c64fe528b96dfbb9b1348eb5 (diff) | |
download | lua-language-server-b17a7ec335b2702dd3562ab2d3380effba08a51a.zip |
更新一波语义着色
Diffstat (limited to 'script/constant')
-rw-r--r-- | script/constant/TokenModifiers.lua | 8 | ||||
-rw-r--r-- | script/constant/TokenTypes.lua | 21 |
2 files changed, 29 insertions, 0 deletions
diff --git a/script/constant/TokenModifiers.lua b/script/constant/TokenModifiers.lua new file mode 100644 index 00000000..b77fd386 --- /dev/null +++ b/script/constant/TokenModifiers.lua @@ -0,0 +1,8 @@ +return { + ["declaration"] = 1 << 0, + ["documentation"] = 1 << 1, + ["static"] = 1 << 2, + ["abstract"] = 1 << 3, + ["deprecated"] = 1 << 4, + ["readonly"] = 1 << 5, +} diff --git a/script/constant/TokenTypes.lua b/script/constant/TokenTypes.lua new file mode 100644 index 00000000..236a7805 --- /dev/null +++ b/script/constant/TokenTypes.lua @@ -0,0 +1,21 @@ +return { + ["comment"] = 0, + ["keyword"] = 1, + ["number"] = 2, + ["regexp"] = 3, + ["operator"] = 4, + ["namespace"] = 5, + ["type"] = 6, + ["struct"] = 7, + ["class"] = 8, + ["interface"] = 9, + ["enum"] = 10, + ["typeParameter"] = 11, + ["function"] = 12, + ["member"] = 13, + ["macro"] = 14, + ["variable"] = 15, + ["parameter"] = 16, + ["property"] = 17, + ["label"] = 18, +} |