From b17a7ec335b2702dd3562ab2d3380effba08a51a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 15 May 2020 19:16:42 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=80=E6=B3=A2=E8=AF=AD=E4=B9=89?= =?UTF-8?q?=E7=9D=80=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/constant/TokenModifiers.lua | 8 ++++++++ script/constant/TokenTypes.lua | 21 +++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 script/constant/TokenModifiers.lua create mode 100644 script/constant/TokenTypes.lua (limited to 'script/constant') 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, +} -- cgit v1.2.3