Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

highlights.generated.ts

371 lines6.0 KB

1// Generated by apps/mobile/scripts/generate-highlights.mts from @pierre/highlights 0.2.0 (highlights.wasm sha256 cf5fc4d83e7c1ddab19d163de096f787f87efe61504909aa469434f61ef51e2e). Do not edit.
2​
3export const HIGHLIGHTS_LANGUAGE_IDS: Readonly<Record<string, number>> = {
4 plain: 0,
5 plaintext: 0,
6 text: 0,
7 txt: 0,
8 "angular-html": 1,
9 asm: 2,
10 assembly: 2,
11 s: 2,
12 astro: 3,
13 bash: 4,
14 sh: 4,
15 shell: 4,
16 shellscript: 4,
17 shellsession: 4,
18 zsh: 4,
19 bat: 5,
20 batch: 5,
21 batchfile: 5,
22 cmd: 5,
23 dos: 5,
24 c: 6,
25 h: 6,
26 c3: 7,
27 clj: 8,
28 cljc: 8,
29 cljs: 8,
30 clojure: 8,
31 edn: 8,
32 cmake: 9,
33 "c++": 10,
34 cc: 10,
35 cpp: 10,
36 cxx: 10,
37 hh: 10,
38 hpp: 10,
39 hxx: 10,
40 "c#": 11,
41 cs: 11,
42 csharp: 11,
43 css: 12,
44 cu: 13,
45 cuda: 13,
46 cuh: 13,
47 dart: 14,
48 diff: 15,
49 "git-commit": 15,
50 "git-rebase": 15,
51 patch: 15,
52 containerfile: 16,
53 docker: 16,
54 dockerfile: 16,
55 elixir: 17,
56 ex: 17,
57 exs: 17,
58 elm: 18,
59 erl: 19,
60 erlang: 19,
61 hrl: 19,
62 f03: 20,
63 f08: 20,
64 f90: 20,
65 f95: 20,
66 fortran: 20,
67 "fortran-free-form": 20,
68 f: 21,
69 f77: 21,
70 for: 21,
71 "fortran-fixed-form": 21,
72 "f#": 22,
73 fs: 22,
74 fsharp: 22,
75 fsi: 22,
76 fsx: 22,
77 gdresource: 23,
78 "godot-resource": 23,
79 tres: 23,
80 tscn: 23,
81 gd: 24,
82 gdscript: 24,
83 gdshader: 25,
84 gdshaderinc: 25,
85 "godot-shader": 25,
86 gleam: 26,
87 comp: 27,
88 frag: 27,
89 geom: 27,
90 glsl: 27,
91 vert: 27,
92 go: 28,
93 golang: 28,
94 gql: 29,
95 graphql: 29,
96 gradle: 30,
97 groovy: 30,
98 gsh: 30,
99 gvy: 30,
100 gy: 30,
101 haskell: 31,
102 hs: 31,
103 hlsl: 32,
104 htm: 33,
105 html: 33,
106 java: 34,
107 cjs: 35,
108 javascript: 35,
109 js: 35,
110 mjs: 35,
111 json: 36,
112 jsonc: 36,
113 json5: 37,
114 jsonl: 38,
115 jsx: 39,
116 jl: 40,
117 julia: 40,
118 kotlin: 41,
119 kt: 41,
120 kts: 41,
121 latex: 42,
122 tex: 42,
123 less: 43,
124 cl: 44,
125 el: 44,
126 elisp: 44,
127 "emacs-lisp": 44,
128 lisp: 44,
129 lsp: 44,
130 scheme: 44,
131 scm: 44,
132 lua: 45,
133 make: 46,
134 makefile: 46,
135 mk: 46,
136 markdown: 47,
137 md: 47,
138 matlab: 48,
139 octave: 48,
140 mdx: 49,
141 nim: 50,
142 nix: 51,
143 m: 52,
144 mm: 52,
145 objc: 52,
146 objcpp: 52,
147 "objective-c": 52,
148 "objective-cpp": 52,
149 objectivec: 52,
150 ml: 53,
151 mli: 53,
152 ocaml: 53,
153 delphi: 54,
154 dpk: 54,
155 dpr: 54,
156 lpr: 54,
157 "object-pascal": 54,
158 objectpascal: 54,
159 pas: 54,
160 pascal: 54,
161 pp: 54,
162 perl: 55,
163 pl: 55,
164 pm: 55,
165 php: 56,
166 powershell: 57,
167 ps: 57,
168 ps1: 57,
169 psd1: 57,
170 psm1: 57,
171 pwsh: 57,
172 proto: 58,
173 protobuf: 58,
174 py: 59,
175 python: 59,
176 r: 60,
177 rscript: 60,
178 rb: 61,
179 ruby: 61,
180 rs: 62,
181 rust: 62,
182 sass: 63,
183 sbt: 64,
184 sc: 64,
185 scala: 64,
186 scss: 65,
187 sol: 66,
188 solidity: 66,
189 sql: 67,
190 svelte: 68,
191 swift: 69,
192 hcl: 70,
193 terraform: 70,
194 tf: 70,
195 tfvars: 70,
196 toml: 71,
197 "angular-ts": 72,
198 cts: 72,
199 mts: 72,
200 ts: 72,
201 typescript: 72,
202 tsrx: 73,
203 tsx: 74,
204 vue: 75,
205 wasm: 76,
206 wat: 76,
207 wgsl: 77,
208 svg: 78,
209 xml: 78,
210 xsd: 78,
211 yaml: 79,
212 yml: 79,
213 zig: 80,
214 zon: 80,
215};
216​
217/** `[color, fontStyle]` by token ID. fontStyle bits: italic 1, bold 2. */
218export const HIGHLIGHTS_THEME_STYLES: Readonly<
219 Record<"light" | "dark", ReadonlyArray<readonly [string, number]>>
220> = {
221 light: [
222 ["#0a0a0a", 0],
223 ["#18a46c", 0],
224 ["#18a46c", 0],
225 ["#1ca1c7", 0],
226 ["#737373", 0],
227 ["#737373", 0],
228 ["#d5a910", 0],
229 ["#d5a910", 0],
230 ["#a631be", 0],
231 ["#d52c36", 0],
232 ["#18a46c", 0],
233 ["#0a0a0a", 0],
234 ["#0a0a0a", 1],
235 ["#0a0a0a", 2],
236 ["#693acf", 0],
237 ["#693acf", 0],
238 ["#693acf", 0],
239 ["#d32a61", 0],
240 ["#d32a61", 0],
241 ["#d32a61", 0],
242 ["#d32a61", 0],
243 ["#08c0ef", 0],
244 ["#d5901c", 0],
245 ["#d5901c", 0],
246 ["#1ca1c7", 0],
247 ["#08c0ef", 0],
248 ["#8a8a8a", 1],
249 ["#d32a61", 0],
250 ["#009fff", 0],
251 ["#d47628", 0],
252 ["#d47628", 0],
253 ["#636363", 0],
254 ["#636363", 0],
255 ["#636363", 0],
256 ["#636363", 0],
257 ["#636363", 0],
258 ["#636363", 0],
259 ["#636363", 0],
260 ["#636363", 0],
261 ["#636363", 0],
262 ["#d32a61", 0],
263 ["#d5512f", 0],
264 ["#18a46c", 0],
265 ["#693acf", 0],
266 ["#199f43", 0],
267 ["#16a994", 0],
268 ["#17a5af", 0],
269 ["#16a994", 0],
270 ["#d5a910", 0],
271 ["#d5512f", 0],
272 ["#d5512f", 0],
273 ["#d5512f", 0],
274 ["#0a0a0a", 0],
275 ["#199f43", 0],
276 ["#d5512f", 2],
277 ["#a631be", 0],
278 ["#a631be", 0],
279 ["#a631be", 0],
280 ["#d47628", 0],
281 ["#636363", 0],
282 ["#d5901c", 0],
283 ["#a631be", 0],
284 ["#737373", 0],
285 ["#d32a61", 0],
286 ["#009fff", 0],
287 ["#d32a61", 0],
288 ["#08c0ef", 0],
289 ["#a631be", 0],
290 ["#a631be", 0],
291 ["#d47628", 0],
292 ["#d5a910", 0],
293 ["#0a0a0a", 0],
294 ["#0a0a0a", 0],
295 ],
296 dark: [
297 ["#fafafa", 0],
298 ["#60d199", 0],
299 ["#60d199", 0],
300 ["#68cdf2", 0],
301 ["#737373", 0],
302 ["#737373", 0],
303 ["#ffd452", 0],
304 ["#ffd452", 0],
305 ["#d568ea", 0],
306 ["#ff2e3f", 0],
307 ["#07c480", 0],
308 ["#fafafa", 0],
309 ["#fafafa", 1],
310 ["#fafafa", 2],
311 ["#9d6afb", 0],
312 ["#9d6afb", 0],
313 ["#9d6afb", 0],
314 ["#ff678d", 0],
315 ["#ff678d", 0],
316 ["#ff678d", 0],
317 ["#ff678d", 0],
318 ["#08c0ef", 0],
319 ["#ffab16", 0],
320 ["#ffab16", 0],
321 ["#68cdf2", 0],
322 ["#08c0ef", 0],
323 ["#636363", 1],
324 ["#ff678d", 0],
325 ["#009fff", 0],
326 ["#ffa359", 0],
327 ["#ffa359", 0],
328 ["#636363", 0],
329 ["#636363", 0],
330 ["#636363", 0],
331 ["#636363", 0],
332 ["#636363", 0],
333 ["#636363", 0],
334 ["#636363", 0],
335 ["#636363", 0],
336 ["#636363", 0],
337 ["#ff678d", 0],
338 ["#ff855e", 0],
339 ["#60d199", 0],
340 ["#9d6afb", 0],
341 ["#5ecc71", 0],
342 ["#61d5c0", 0],
343 ["#64d1db", 0],
344 ["#61d5c0", 0],
345 ["#ffd452", 0],
346 ["#ff855e", 0],
347 ["#ff855e", 0],
348 ["#ff855e", 0],
349 ["#fafafa", 0],
350 ["#5ecc71", 0],
351 ["#ff855e", 2],
352 ["#d568ea", 0],
353 ["#d568ea", 0],
354 ["#d568ea", 0],
355 ["#ffa359", 0],
356 ["#a3a3a3", 0],
357 ["#ffab16", 0],
358 ["#d568ea", 0],
359 ["#737373", 0],
360 ["#ff678d", 0],
361 ["#009fff", 0],
362 ["#ff678d", 0],
363 ["#08c0ef", 0],
364 ["#d568ea", 0],
365 ["#d568ea", 0],
366 ["#ffa359", 0],
367 ["#ffd452", 0],
368 ["#fafafa", 0],
369 ["#fafafa", 0],
370 ],
371};