|
1 | 1 | local function callback() |
2 | 2 | return { |
| 3 | + |
| 4 | + -- misc |
| 5 | + ["@comment"] = { link = "Comment" }, |
| 6 | + ["@define"] = { link = "Define" }, |
| 7 | + ["@error"] = { link = "Error" }, |
| 8 | + ["@operator"] = { link = "Operator" }, |
| 9 | + ["@preproc"] = { link = "PreProc" }, |
| 10 | + |
| 11 | + -- data types |
| 12 | + ["@boolean"] = { link = "Boolean" }, |
| 13 | + ["@number"] = { link = "Number" }, |
| 14 | + ["@float"] = { link = "Float" }, |
| 15 | + ["@string"] = { link = "String" }, |
| 16 | + ["@string.escape"] = { fg = C.red }, |
| 17 | + ["@string.regex"] = { link = "String" }, |
| 18 | + ["@string.special"] = { link = "String" }, |
| 19 | + ["@character"] = { link = "Character" }, |
| 20 | + ["@character.special"] = { link = "SpecialChar" }, |
| 21 | + |
3 | 22 | ["@annotation"] = { fg = C.yellow }, |
4 | 23 | ["@attribute"] = { fg = C.red }, |
5 | | - ["@boolean"] = { fg = C.orange }, |
6 | | - ["@character"] = { fg = C.green }, |
7 | | - ["@conditional"] = { fg = C.purple }, |
8 | | - ["@constant"] = { fg = C.yellow }, |
9 | | - ["@constant.builtin"] = { fg = C.orange }, |
10 | | - ["@constant.macro"] = { fg = C.red }, |
11 | | - ["@constant.rust"] = { fg = C.cyan }, |
| 24 | + |
| 25 | + -- function |
12 | 26 | ["@constructor"] = { fg = C.yellow }, |
13 | | - ["@error"] = { fg = C.red }, |
14 | | - ["@exception"] = { fg = C.purple }, |
15 | | - ["@field"] = { fg = C.red }, |
16 | | - ["@float"] = { fg = C.orange }, |
17 | | - ["@function"] = { fg = C.blue }, |
18 | | - ["@function.builtin"] = { fg = C.blue }, |
| 27 | + ["@function"] = { link = "Function" }, |
| 28 | + ["@function.builtin"] = { fg = C.cyan }, |
| 29 | + ["@function.call"] = { link = "@function" }, |
19 | 30 | ["@function.macro"] = { fg = C.yellow }, |
20 | | - ["@function.macro.rust"] = { fg = C.orange }, |
21 | | - ["@include"] = { fg = C.purple }, |
| 31 | + ["@method"] = { fg = C.cyan }, |
| 32 | + ["@method.call"] = { link = "@method" }, |
| 33 | + |
| 34 | + -- identifiers |
| 35 | + ["@constant"] = { link = "Constant" }, |
| 36 | + ["@constant.builtin"] = { fg = C.orange }, |
| 37 | + ["@constant.macro"] = { fg = C.red }, |
| 38 | + |
| 39 | + ["@namespace"] = { link = "Keyword" }, |
| 40 | + ["@symbol"] = { link = "Special" }, |
| 41 | + |
| 42 | + ["@variable"] = { link = "Identifier" }, |
| 43 | + ["@variable.builtin"] = { fg = C.red }, |
| 44 | + |
| 45 | + ["@property"] = { link = "@variable.builtin" }, |
| 46 | + |
| 47 | + -- keyword |
| 48 | + ["@conditional"] = { link = "Conditional" }, |
| 49 | + ["@exception"] = { link = "Exception" }, |
| 50 | + ["@include"] = { link = "Include" }, |
| 51 | + |
22 | 52 | ["@keyword"] = { link = "Keyword" }, |
| 53 | + ["@keyword.export"] = { link = "Keyword" }, |
23 | 54 | ["@keyword.function"] = { link = "Keyword" }, |
24 | | - ["@keyword.function.rust"] = { fg = C.orange }, |
25 | 55 | ["@keyword.operator"] = { link = "Keyword" }, |
26 | | - ["@label"] = { fg = C.blue }, |
27 | | - ["@literal.markdown"] = { fg = C.green }, |
28 | | - ["@method"] = { fg = C.blue }, |
29 | | - ["@namespace"] = { link = "Keyword" }, |
30 | | - ["@namespace.rust"] = { fg = C.yellow }, |
31 | | - ["@none.markdown"] = { fg = C.text }, |
32 | | - ["@number"] = { fg = C.orange }, |
33 | | - ["@parameter"] = { fg = C.red }, |
| 56 | + ["@keyword.return"] = { link = "Keyword" }, |
| 57 | + |
| 58 | + ["@label"] = { link = "Label" }, |
| 59 | + ["@parameter"] = { fg = C.orange }, |
34 | 60 | ["@parameter.reference"] = { fg = C.cyan }, |
35 | | - ["@property"] = { fg = C.yellow }, |
| 61 | + |
| 62 | + ["@repeat"] = { link = "Repeat" }, |
| 63 | + |
| 64 | + -- punctuation |
36 | 65 | ["@punctuation.bracket"] = { fg = C.text }, |
37 | 66 | ["@punctuation.delimiter"] = { fg = C.text }, |
38 | | - ["@punctuation.delimiter.markdown"] = { fg = C.text }, |
39 | 67 | ["@punctuation.special"] = { fg = C.text }, |
40 | | - ["@punctuation.special.markdown"] = { fg = C.red }, |
41 | | - ["@repeat"] = { fg = C.purple }, |
42 | | - ["@string"] = { fg = C.green }, |
43 | | - ["@string.escape"] = { fg = C.red }, |
44 | | - ["@string.regex"] = { fg = C.green }, |
| 68 | + |
| 69 | + -- tag |
45 | 70 | ["@tag"] = { fg = C.red }, |
46 | 71 | ["@tag.attribute"] = { fg = C.cyan }, |
47 | 72 | ["@tag.delimiter"] = { fg = C.text }, |
| 73 | + |
| 74 | + -- semantic tokens |
| 75 | + ["@class"] = { fg = C.blue }, |
| 76 | + ["@decorator"] = { fg = C.orange }, |
| 77 | + ["@enum"] = { fg = C.cyan }, |
| 78 | + ["@enumMember"] = { fg = C.orange }, |
| 79 | + ["@event"] = { fg = C.orange }, |
| 80 | + ["@interface"] = { fg = C.orange }, |
| 81 | + ["@modifier"] = { fg = C.orange }, |
| 82 | + ["@regexp"] = { fg = C.cyan }, |
| 83 | + ["@struct"] = { fg = C.blue }, |
| 84 | + ["@typeParameter"] = { fg = C.yellow }, |
| 85 | + |
| 86 | + -- text |
48 | 87 | ["@text"] = { fg = C.text }, |
49 | 88 | ["@text.emphasis"] = { fg = C.purple, italic = true }, |
| 89 | + ["@text.environment"] = { fg = C.orange }, |
| 90 | + ["@text.environment.name"] = { fg = C.blue }, |
50 | 91 | ["@text.literal"] = { fg = C.text }, |
51 | | - ["@text.reference"] = { fg = C.yellow }, |
| 92 | + ["@text.math"] = { fg = C.blue }, |
| 93 | + ["@text.reference"] = { fg = C.yellow, bold = true }, |
52 | 94 | ["@text.strong"] = { fg = C.blue, bold = true }, |
53 | | - ["@text.title"] = { fg = C.text }, |
54 | | - ["@text.underline"] = { fg = C.text }, |
55 | | - ["@text.uri"] = { fg = C.green }, |
56 | | - ["@title.markdown"] = { fg = C.red }, |
57 | | - ["@type"] = { fg = C.blue }, |
58 | | - ["@type.builtin"] = { fg = C.blue }, |
59 | | - ["@type.qualifier.typescript"] = { link = "Keyword" }, |
| 95 | + ["@text.strike"] = { fg = C.green, strikethrough = true }, |
| 96 | + ["@text.title"] = { fg = C.text, bold = true }, |
| 97 | + ["@text.underline"] = { link = "Underline" }, |
| 98 | + ["@text.uri"] = { fg = C.green, italic = true, underline = true }, |
| 99 | + |
| 100 | + ["@text.todo"] = { fg = C.base, bg = C.yellow }, |
| 101 | + ["@text.todo.checked"] = { fg = C.green }, |
| 102 | + ["@text.todo.danger"] = { fg = C.base, bg = C.red }, |
| 103 | + ["@text.todo.note"] = { fg = C.base, bg = C.blue }, |
| 104 | + ["@text.todo.unchecked"] = { fg = C.overlay1 }, |
| 105 | + ["@text.todo.warning"] = { fg = C.base, bg = C.yellow }, |
| 106 | + |
| 107 | + ["@text.diff.add"] = { link = "DiffAdded" }, |
| 108 | + ["@text.diff.delete"] = { link = "DiffDelete" }, |
| 109 | + |
| 110 | + -- type |
| 111 | + ["@field"] = { fg = C.red }, |
| 112 | + ["@storageclass"] = { link = "StorageClass" }, |
| 113 | + |
| 114 | + ["@type"] = { link = "Type" }, |
| 115 | + ["@type.builtin"] = { link = "@type" }, |
| 116 | + ["@type.definition"] = { link = "@type" }, |
| 117 | + ["@type.qualifier"] = { link = "@type" }, |
| 118 | + |
| 119 | + ----------------------- |
| 120 | + -- Language Specific -- |
| 121 | + ----------------------- |
| 122 | + |
| 123 | + -- cpp |
| 124 | + ["@property.cpp"] = { fg = C.orange }, |
| 125 | + |
| 126 | + -- css |
| 127 | + ["@number.css"] = { fg = C.cyan }, |
| 128 | + ["@property.css"] = { fg = C.orange }, |
| 129 | + ["@property.class.css"] = { fg = C.yellow }, |
| 130 | + ["@property.id.css"] = { fg = C.blue }, |
| 131 | + ["@string.plain.css"] = { fg = C.green }, |
| 132 | + ["@type.tag.css"] = { fg = C.purple }, |
| 133 | + ["@type.css"] = { fg = C.orange }, |
| 134 | + |
| 135 | + -- json |
| 136 | + ["@label.json"] = { fg = C.blue }, |
| 137 | + |
| 138 | + -- lua |
| 139 | + ["@constructor.lua"] = { fg = C.orange }, |
| 140 | + ["@variable.lua"] = { link = "@variable" }, |
| 141 | + |
| 142 | + -- markdown |
| 143 | + ["@literal.markdown"] = { fg = C.green }, |
| 144 | + ["@none.markdown"] = { fg = C.text }, |
| 145 | + ["@punctuation.delimiter.markdown"] = { fg = C.text }, |
| 146 | + ["@punctuation.special.markdown"] = { fg = C.red }, |
| 147 | + ["@title.markdown"] = { fg = C.red, bold = true }, |
| 148 | + |
| 149 | + -- PHP |
| 150 | + ["@type.qualifier.php"] = { link = "Keyword" }, |
| 151 | + ["@method.php"] = { link = "Function" }, |
| 152 | + ["@method.call.php"] = { link = "Function" }, |
| 153 | + |
| 154 | + -- Ruby |
| 155 | + ["@symbol.ruby"] = { fg = C.orange }, |
| 156 | + |
| 157 | + -- rust |
| 158 | + ["@constant.rust"] = { fg = C.cyan }, |
| 159 | + ["@function.macro.rust"] = { fg = C.orange }, |
| 160 | + ["@keyword.function.rust"] = { fg = C.orange }, |
| 161 | + ["@namespace.rust"] = { fg = C.yellow }, |
60 | 162 | ["@type.rust"] = { fg = C.yellow }, |
61 | | - ["@variable"] = { fg = C.red }, |
62 | | - ["@variable.builtin"] = { fg = C.yellow }, |
| 163 | + |
| 164 | + -- toml |
| 165 | + ["@property.toml"] = { fg = C.blue }, |
| 166 | + |
| 167 | + -- typescript |
| 168 | + ["@type.qualifier.typescript"] = { link = "Keyword" }, |
| 169 | + |
| 170 | + -- TSX (Typescript React) |
| 171 | + ["@constructor.tsx"] = { fg = C.lavender }, |
| 172 | + ["@tag.attribute.tsx"] = { fg = C.purple, italic = true }, |
| 173 | + |
| 174 | + -- yaml |
| 175 | + ["@field.yaml"] = { fg = C.blue }, |
63 | 176 | } |
64 | 177 | end |
65 | 178 |
|
|
0 commit comments